mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r11665) -Fix: Animation informations should not be copied from original industry tile spec, while doing an action 00, industry tile, prop 08.
Fix directly inspired by Csaboka
This commit is contained in:
parent
7db6c7db38
commit
b8196d36e7
@ -1777,6 +1777,13 @@ static bool IndustrytilesChangeInfo(uint indtid, int numinfo, int prop, byte **b
|
|||||||
|
|
||||||
memcpy(tsp, &_industry_tile_specs[subs_id], sizeof(_industry_tile_specs[subs_id]));
|
memcpy(tsp, &_industry_tile_specs[subs_id], sizeof(_industry_tile_specs[subs_id]));
|
||||||
tsp->enabled = true;
|
tsp->enabled = true;
|
||||||
|
|
||||||
|
/* A copied tile should not have the animation infos copied too.
|
||||||
|
* The anim_state should be left untouched, though
|
||||||
|
* It is up to the author to animate them himself */
|
||||||
|
tsp->anim_production = INDUSTRYTILE_NOANIM;
|
||||||
|
tsp->anim_next = INDUSTRYTILE_NOANIM;
|
||||||
|
|
||||||
tsp->grf_prop.local_id = indtid + i;
|
tsp->grf_prop.local_id = indtid + i;
|
||||||
tsp->grf_prop.subst_id = subs_id;
|
tsp->grf_prop.subst_id = subs_id;
|
||||||
tsp->grf_prop.grffile = _cur_grffile;
|
tsp->grf_prop.grffile = _cur_grffile;
|
||||||
|
Loading…
Reference in New Issue
Block a user