1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
John Taylor a11cacb93c
Merge 6acccb9044 into c69fc76395 2025-07-21 20:00:16 +00:00
Peter Nelson c69fc76395
Codefix: Rail type bridge offset is not a SpriteID. (#14471) 2025-07-21 20:00:04 +00:00
John Taylor 6acccb9044 Fix #13600: Added diagonal terraforming to scenario editor 2025-03-21 17:41:09 +01:00
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -584,12 +584,12 @@ struct ScenarioEditorLandscapeGenerationWindow : Window {
break;
case WID_ETT_LOWER_LAND: // Lower land button
HandlePlacePushButton(this, WID_ETT_LOWER_LAND, ANIMCURSOR_LOWERLAND, HT_POINT);
HandlePlacePushButton(this, WID_ETT_LOWER_LAND, ANIMCURSOR_LOWERLAND, HT_POINT | HT_DIAGONAL);
this->last_user_action = widget;
break;
case WID_ETT_RAISE_LAND: // Raise land button
HandlePlacePushButton(this, WID_ETT_RAISE_LAND, ANIMCURSOR_RAISELAND, HT_POINT);
HandlePlacePushButton(this, WID_ETT_RAISE_LAND, ANIMCURSOR_RAISELAND, HT_POINT | HT_DIAGONAL);
this->last_user_action = widget;
break;