問題:
ゲームの再開後、踏切の種類が変わってしまう
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];