Codechange: Don't use a global for the terrforming error tile.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "zoom_func.h"
|
||||
#include "terraform_cmd.h"
|
||||
#include "object_cmd.h"
|
||||
#include "road_cmd.h"
|
||||
|
||||
#include "widgets/object_widget.h"
|
||||
|
||||
@@ -543,7 +544,7 @@ public:
|
||||
void OnPlaceObject(Point pt, TileIndex tile) override
|
||||
{
|
||||
ObjectClass *objclass = ObjectClass::Get(_selected_object_class);
|
||||
Command<CMD_BUILD_OBJECT>::Post(STR_ERROR_CAN_T_BUILD_OBJECT, CcTerraform,
|
||||
Command<CMD_BUILD_OBJECT>::Post(STR_ERROR_CAN_T_BUILD_OBJECT, CcPlaySound_CONSTRUCTION_OTHER,
|
||||
tile, objclass->GetSpec(_selected_object_index)->Index(), _selected_object_view);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user