The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Dwachs on November 28, 2008, 08:05:16 am

Title: Patch: simcity - p****enger destinations
Post by: Dwachs on November 28, 2008, 08:05:16 am
The p****enger destinations in the city info window show a wrong offset for small maps (64x64, 128x128), eg the default.sve from pak 64.
Code: [Select]
Index: simcity.cc
===================================================================
--- simcity.cc (revision 2144)
+++ simcity.cc (working copy)
@@ -1591,8 +1591,8 @@
 void stadt_t::merke_p****agier_ziel(koord k, uint8 color)
 {
  const koord p = koord(
- ((k.x * 127) / welt->gib_groesse_x()) & 127,
- ((k.y * 127) / welt->gib_groesse_y()) & 127
+ ((k.x * 128) / welt->gib_groesse_x()) & 127,
+ ((k.y * 128) / welt->gib_groesse_y()) & 127
  );
  pax_ziele_neu.at(p) = color;
 }