forked from mirror/OpenTTD
(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 ;))
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user