src/town_cmd.cpp
changeset 7709 439dcda6d74b
parent 7684 a79c09246c27
child 7739 0b6f3da5c083
equal deleted inserted replaced
7708:48d236e6fbf4 7709:439dcda6d74b
    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();