diff options
author | belugas <belugas@openttd.org> | 2007-12-18 21:25:44 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-12-18 21:25:44 +0000 |
commit | 0223de544257c0771e62fed5abe8159f0d1a50d5 (patch) | |
tree | 2b994d5ade78513ff8b32c2d81b18310f3f96be5 | |
parent | 818a23e7f214cad3d6fdf3c46761a1af0fac595a (diff) | |
download | openttd-0223de544257c0771e62fed5abe8159f0d1a50d5.tar.xz |
(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
-rw-r--r-- | src/newgrf.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index d372821be..6c7a367a6 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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])); 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.subst_id = subs_id; tsp->grf_prop.grffile = _cur_grffile; |