1
0
Fork 0

Compare commits

..

3 Commits

Author SHA1 Message Date
Tyler Trahan 3d3de518d8
Merge 43310ae9ea into 1d21edde8d 2025-07-21 04:50:04 +00:00
Tyler Trahan 43310ae9ea Change: Convert house placer protection buttons to a single toggle 2025-07-20 20:00:53 -04:00
Tyler Trahan 447163b931 Feature: House placer mode to overbuild existing houses 2025-07-20 20:00:33 -04:00
3 changed files with 2 additions and 3 deletions

View File

@ -184,7 +184,7 @@ public:
/**
* Bridge offset
*/
uint8_t bridge_offset;
SpriteID bridge_offset;
/**
* Original railtype number to use when drawing non-newgrf railtypes, or when drawing stations.

View File

@ -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. */
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;
}
}

View File

@ -1741,7 +1741,6 @@ struct BuildHouseWindow : public PickerWindow {
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
this->SetDirty();
break;
case WID_BH_OVERBUILD_TOGGLE:
BuildHouseWindow::overbuild = !BuildHouseWindow::overbuild;
this->SetWidgetLoweredState(WID_BH_OVERBUILD_TOGGLE, BuildHouseWindow::overbuild);