The International Simutrans Forum

 

Author Topic: Patch: simcity - passenger destinations  (Read 3015 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4870
  • Languages: EN, DE, AT
Patch: simcity - passenger destinations
« on: November 28, 2008, 08:05:16 AM »
The passenger 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_passagier_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;
 }