mirror of https://github.com/OpenTTD/OpenTTD
Compare commits
3 Commits
13f3316fdb
...
3d3de518d8
Author | SHA1 | Date |
---|---|---|
|
3d3de518d8 | |
|
43310ae9ea | |
|
447163b931 |
|
@ -184,7 +184,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Bridge offset
|
* Bridge offset
|
||||||
*/
|
*/
|
||||||
uint8_t bridge_offset;
|
SpriteID bridge_offset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Original railtype number to use when drawing non-newgrf railtypes, or when drawing stations.
|
* Original railtype number to use when drawing non-newgrf railtypes, or when drawing stations.
|
||||||
|
|
|
@ -2940,7 +2940,7 @@ CommandCost CmdPlaceHouse(DoCommandFlags flags, TileIndex tile, HouseID house, b
|
||||||
|
|
||||||
/* We might be overbuilding an existing house, otherwise check if we can clear land. */
|
/* We might be overbuilding an existing house, otherwise check if we can clear land. */
|
||||||
if (!(overbuild && GetTileType(subtile) == MP_HOUSE)) {
|
if (!(overbuild && GetTileType(subtile) == MP_HOUSE)) {
|
||||||
CommandCost cost = Command<CMD_LANDSCAPE_CLEAR>::Do({DoCommandFlag::Auto, DoCommandFlag::NoWater}, subtile);
|
CommandCost cost = Command<CMD_LANDSCAPE_CLEAR>::Do({ DoCommandFlag::Auto, DoCommandFlag::NoWater }, subtile);
|
||||||
if (!cost.Succeeded()) return cost;
|
if (!cost.Succeeded()) return cost;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1741,7 +1741,6 @@ struct BuildHouseWindow : public PickerWindow {
|
||||||
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WID_BH_OVERBUILD_TOGGLE:
|
case WID_BH_OVERBUILD_TOGGLE:
|
||||||
BuildHouseWindow::overbuild = !BuildHouseWindow::overbuild;
|
BuildHouseWindow::overbuild = !BuildHouseWindow::overbuild;
|
||||||
this->SetWidgetLoweredState(WID_BH_OVERBUILD_TOGGLE, BuildHouseWindow::overbuild);
|
this->SetWidgetLoweredState(WID_BH_OVERBUILD_TOGGLE, BuildHouseWindow::overbuild);
|
||||||
|
|
Loading…
Reference in New Issue