投稿者 トピック: [111-2-2/nightly] 正方形でないマップで旅客の目的地がminimapに表示されない  (参照数 2908 回)

z9999+

  • 管理人
  • 急行
  • *
  • 投稿: 381
正方形でないマップで、旅客の目的地がminimapに表示されない。

If a map is not square, destination of passengers are not displayed on minimap window. Square maps have no problem, but both 255*64 size map and 64*255 size map have this problem.
This problem happens in both 111-2-2 and r5676.

z9999+

  • 管理人
  • 急行
  • *
  • 投稿: 381
64x64や128x128のマップでも同様の問題があるようです。


64x64 map and 128x128 map have problem too.
So, it's a problem of small size map.

This can fix the problem.
コード: [選択]
Index: gui/karte.cc
===================================================================
--- gui/karte.cc (r5684)
+++ gui/karte.cc (copy)
@@ -1085,11 +1085,14 @@
              (pos.y*welt->get_groesse_y())/PAX_DESTINATIONS_SIZE);
  max = koord(((pos.x+1)*welt->get_groesse_x())/PAX_DESTINATIONS_SIZE,
              ((pos.y+1)*welt->get_groesse_y())/PAX_DESTINATIONS_SIZE);
- for( pos.x = min.x;  pos.x < max.x;  pos.x++  ) {
- for( pos.y = min.y;  pos.y < max.y;  pos.y++  ) {
+ pos = min;
+ do {
+ do {
  set_relief_farbe(pos, color);
- }
- }
+ pos.y++;
+ } while(pos.y < max.y);
+ pos.x++;
+ } while (pos.x < max.x);
  }
  }
  pax_destinations_last_change = city->get_pax_destinations_new_change();


prissi

  • 各駅停車
  • *
  • 投稿: 45
Thanks, most helpful! Too bad weather for holiday during golden week? ;) At least good for Simutrans ...
« 最終編集: 2012/05/04 05:41 by prissi »