Changeset - r18889:3231d4b64819
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-01-03 23:53:53
frosch@openttd.org
(svn r23748) -Fix: Make vehicle variables A8 and A9 always return 0. Returning cur_image is a potential desyncer due to Action1 in static NewGRFs.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_engine.cpp
Show inline comments
 
@@ -743,8 +743,8 @@ static uint32 VehicleGetVariable(Vehicle
 
		case 0x1D: return GB(v->y_pos, 8, 8);
 
		case 0x1E: return v->z_pos;
 
		case 0x1F: return object->u.vehicle.info_view ? DIR_W : v->direction;
 
		case 0x28: return v->cur_image;
 
		case 0x29: return GB(v->cur_image, 8, 8);
 
		case 0x28: return 0; // cur_image is a potential desyncer due to Action1 in static NewGRFs.
 
		case 0x29: return 0; // cur_image is a potential desyncer due to Action1 in static NewGRFs.
 
		case 0x32: return v->vehstatus;
 
		case 0x33: return 0; // non-existent high byte of vehstatus
 
		case 0x34: return v->type == VEH_AIRCRAFT ? (v->cur_speed * 10) / 128 : v->cur_speed;
0 comments (0 inline, 0 general)