equal
deleted
inserted
replaced
226 void UpdateTownVirtCoord(Town *t) |
226 void UpdateTownVirtCoord(Town *t) |
227 { |
227 { |
228 Point pt; |
228 Point pt; |
229 |
229 |
230 MarkTownSignDirty(t); |
230 MarkTownSignDirty(t); |
231 pt = RemapCoords2(TileX(t->xy) * 16, TileY(t->xy) * 16); |
231 pt = RemapCoords2(TileX(t->xy) * TILE_SIZE, TileY(t->xy) * TILE_SIZE); |
232 SetDParam(0, t->index); |
232 SetDParam(0, t->index); |
233 SetDParam(1, t->population); |
233 SetDParam(1, t->population); |
234 UpdateViewportSignPos(&t->sign, pt.x, pt.y - 24, |
234 UpdateViewportSignPos(&t->sign, pt.x, pt.y - 24, |
235 _patches.population_in_label ? STR_TOWN_LABEL_POP : STR_TOWN_LABEL); |
235 _patches.population_in_label ? STR_TOWN_LABEL_POP : STR_TOWN_LABEL); |
236 MarkTownSignDirty(t); |
236 MarkTownSignDirty(t); |