equal
deleted
inserted
replaced
40 #include "newgrf_house.h" |
40 #include "newgrf_house.h" |
41 #include "newgrf_commons.h" |
41 #include "newgrf_commons.h" |
42 #include "newgrf_townname.h" |
42 #include "newgrf_townname.h" |
43 #include "misc/autoptr.hpp" |
43 #include "misc/autoptr.hpp" |
44 #include "autoslope.h" |
44 #include "autoslope.h" |
|
45 #include "waypoint.h" |
45 |
46 |
46 /* Initialize the town-pool */ |
47 /* Initialize the town-pool */ |
47 DEFINE_OLD_POOL_GENERIC(Town, Town) |
48 DEFINE_OLD_POOL_GENERIC(Town, Town) |
48 |
49 |
49 Town::Town(TileIndex tile) |
50 Town::Town(TileIndex tile) |
1897 t->townnamegrfid = 0; |
1898 t->townnamegrfid = 0; |
1898 |
1899 |
1899 UpdateTownVirtCoord(t); |
1900 UpdateTownVirtCoord(t); |
1900 _town_sort_dirty = true; |
1901 _town_sort_dirty = true; |
1901 UpdateAllStationVirtCoord(); |
1902 UpdateAllStationVirtCoord(); |
|
1903 UpdateAllWaypointSigns(); |
1902 MarkWholeScreenDirty(); |
1904 MarkWholeScreenDirty(); |
1903 } else { |
1905 } else { |
1904 DeleteName(str); |
1906 DeleteName(str); |
1905 } |
1907 } |
1906 return CommandCost(); |
1908 return CommandCost(); |