Japanese Simutrans Forum

日本語simutransフォーラム => バグレポート => トピック開設者: z9999+ さんの発言 2012/04/29 11:11

トピック名: [111-2-2/nightly] 正方形でないマップで旅客の目的地がminimapに表示されない
投稿者: z9999+ さんの発言 2012/04/29 11:11
正方形でないマップで、旅客の目的地が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.
トピック名: Re:[111-2-2/nightly] 小さいマップで旅客の目的地がminimapに表示されない
投稿者: z9999+ さんの発言 2012/05/02 17:56
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();

トピック名: Re:[111-2-2/nightly] 正方形でないマップで旅客の目的地がminimapに表示されない
投稿者: prissi さんの発言 2012/05/04 05:39
Thanks, most helpful! Too bad weather for holiday during golden week? ;) At least good for Simutrans ...