投稿者 トピック: [nightly] ゲームの再開後、踏切の種類が変わってしまう  (参照数 2534 回)

z9999+

  • 管理人
  • 急行
  • *
  • 投稿: 364
問題:
ゲームの再開後、踏切の種類が変わってしまう

Problem:
After reloading a savegame, crossing image might be changed.

How to reproduce this.
1. Change filename of crossing.rail-road-crossing.pak to crossing.rail-road-crossing_old.pak. (This should change object order of crossing. because of order _old and _new.)
2. Start simutrans and build crossing.
3. Save game as version 0.110.0.
4. Load the savegame.

コード: [選択]
Index: dataobj/crossing_logic.cc
===================================================================
--- dataobj/crossing_logic.cc (リビジョン 4201)
+++ dataobj/crossing_logic.cc (作業コピー)
@@ -240,7 +240,7 @@
  else {
  const uint8 way0_nr = way0==ow;
  if(
- (vec[i]->get_maxspeed(way0_nr) > way0_maxspeed  &&  vec[i]->get_maxspeed(way0_nr) < best->get_maxspeed(way0_nr))  ||
+ (vec[i]->get_maxspeed(way0_nr) >= way0_maxspeed  &&  vec[i]->get_maxspeed(way0_nr) < best->get_maxspeed(way0_nr))  ||
  (best->get_maxspeed(way0_nr) < way0_maxspeed  &&  best->get_maxspeed(way0_nr) < vec[i]->get_maxspeed(way0_nr))
  ) {
  best = vec[i];

« 最終編集: 2011/01/20 18:56 by z9999+ »