From 1df06c7ef1dcbda888e2ae37def456f3803f61d7 Mon Sep 17 00:00:00 2001 From: glx Date: Fri, 28 Mar 2008 02:10:25 +0000 Subject: (svn r12454) -Fix (r12452): incorrect calculation for 'first vehicle in this chain of vehicles with the same ID' (thx DaleStan) -Fix (r12452): wrong loading of random action 2 type 84 for non vehicle (though it shouldn't happen, but who knows ;)) --- src/newgrf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/newgrf.cpp') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 23cf67c14..b267d3198 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2592,8 +2592,8 @@ static void NewSpriteGroup(byte *buf, int len) group->type = SGT_RANDOMIZED; group->g.random.var_scope = HasBit(type, 1) ? VSG_SCOPE_PARENT : VSG_SCOPE_SELF; - if (HasBit(type, 2) && feature <= GSF_AIRCRAFT) { - group->g.random.var_scope = VSG_SCOPE_RELATIVE; + if (HasBit(type, 2)) { + if (feature <= GSF_AIRCRAFT) group->g.random.var_scope = VSG_SCOPE_RELATIVE; group->g.random.count = grf_load_byte(&buf); } -- cgit v1.2.3-54-g00ecf