News:

SimuTranslator
Make Simutrans speak your language.

Patch: simcity - passenger destinations

Started by Dwachs, November 28, 2008, 08:05:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dwachs

The passenger destinations in the city info window show a wrong offset for small maps (64x64, 128x128), eg the default.sve from pak 64.

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;
}
Parsley, sage, rosemary, and maggikraut.