diff options
author | frosch <frosch@openttd.org> | 2014-03-03 19:32:53 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-03-03 19:32:53 +0000 |
commit | b935cb84156f18b51196288ff6d12f8ca5b26630 (patch) | |
tree | 9634ca3355681afe73db3a3b402f865695ee2273 /src/newgrf_station.cpp | |
parent | 363d5e8205ba1734478fd2bdd54b99246d0bbbb2 (diff) | |
download | openttd-b935cb84156f18b51196288ff6d12f8ca5b26630.tar.xz |
(svn r26387) -Cleanup (r26173): No need to manually clear registers before resolving.
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r-- | src/newgrf_station.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 9cdded620..85277337d 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -637,9 +637,10 @@ SpriteID GetCustomStationFoundationRelocation(const StationSpec *statspec, BaseS /* callback_param1 == 2 means we are resolving the foundation sprites. */ StationResolverObject object(statspec, st, tile, CBID_NO_CALLBACK, 2, layout | (edge_info << 16)); - ClearRegister(0x100); const SpriteGroup *group = ResolveStation(object); if (group == NULL || group->type != SGT_RESULT) return 0; + + /* Note: SpriteGroup::Resolve zeroes all registers, so register 0x100 is initialised to 0. (compatibility) */ return group->GetResult() + GetRegister(0x100); } |