forked from mirror/OpenTTD
(svn r22634) -Codechange: Deduplicate some code. Note that zeroing 'count' is intentionally removed, it is only used together with 'scope'.
This commit is contained in:
@@ -397,10 +397,7 @@ static void NewHouseResolver(ResolverObject *res, HouseID house_id, TileIndex ti
|
||||
res->callback = CBID_NO_CALLBACK;
|
||||
res->callback_param1 = 0;
|
||||
res->callback_param2 = 0;
|
||||
res->last_value = 0;
|
||||
res->trigger = 0;
|
||||
res->reseed = 0;
|
||||
res->count = 0;
|
||||
res->ResetState();
|
||||
|
||||
const HouseSpec *hs = HouseSpec::Get(house_id);
|
||||
res->grffile = (hs != NULL ? hs->grf_prop.grffile : NULL);
|
||||
|
Reference in New Issue
Block a user