mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 15:39:09 +00:00
(svn r18739) -Fix (r18719): building trees on snow with rocks underneed caused an assert
This commit is contained in:
@@ -382,7 +382,7 @@ CommandCost CmdPlantTree(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
|||||||
|
|
||||||
if (IsTileType(tile, MP_CLEAR)) {
|
if (IsTileType(tile, MP_CLEAR)) {
|
||||||
/* Remove fields or rocks. Note that the ground will get barrened */
|
/* Remove fields or rocks. Note that the ground will get barrened */
|
||||||
switch (GetClearGround(tile)) {
|
switch (GetRawClearGround(tile)) {
|
||||||
case CLEAR_FIELDS:
|
case CLEAR_FIELDS:
|
||||||
case CLEAR_ROCKS: {
|
case CLEAR_ROCKS: {
|
||||||
CommandCost ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
|
CommandCost ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
|
||||||
|
Reference in New Issue
Block a user