town_cmd.c
changeset 1980 6c5917cfcb78
parent 1977 37bbebf94434
child 1981 3c9c682f1212
equal deleted inserted replaced
1979:82d8bcc16ce2 1980:6c5917cfcb78
  1021  * @param p1 unused
  1021  * @param p1 unused
  1022  * @param p2 unused
  1022  * @param p2 unused
  1023  */
  1023  */
  1024 int32 CmdBuildTown(int x, int y, uint32 flags, uint32 p1, uint32 p2)
  1024 int32 CmdBuildTown(int x, int y, uint32 flags, uint32 p1, uint32 p2)
  1025 {
  1025 {
  1026 	TileIndex tile = TILE_FROM_XY(x,y);
  1026 	TileIndex tile = TileVirtXY(x, y);
  1027 	TileInfo ti;
  1027 	TileInfo ti;
  1028 	Town *t;
  1028 	Town *t;
  1029 	uint32 townnameparts;
  1029 	uint32 townnameparts;
  1030 
  1030 
  1031 	/* Only in the scenario editor */
  1031 	/* Only in the scenario editor */