mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r12333) -Fix: Switch grfstatus from 'activated' back to 'will-be-active' between reservation- and activation-stage.
This fixes action7/9 conditions 0x06 to 0x0A to return the same in those two stages.
This commit is contained in:
parent
6bb37edfb6
commit
6e3ae628fc
@ -5853,6 +5853,12 @@ void LoadNewGRF(uint load_index, uint file_index)
|
|||||||
* in each loading stage, (try to) open each file specified in the config
|
* in each loading stage, (try to) open each file specified in the config
|
||||||
* and load information from it. */
|
* and load information from it. */
|
||||||
for (GrfLoadingStage stage = GLS_LABELSCAN; stage <= GLS_ACTIVATION; stage++) {
|
for (GrfLoadingStage stage = GLS_LABELSCAN; stage <= GLS_ACTIVATION; stage++) {
|
||||||
|
/* Set activated grfs back to will-be-activated between reservation- and activation-stage.
|
||||||
|
* This ensures that action7/9 conditions 0x06 - 0x0A work correctly. */
|
||||||
|
for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) {
|
||||||
|
if (c->status == GCS_ACTIVATED) c->status = GCS_INITIALISED;
|
||||||
|
}
|
||||||
|
|
||||||
uint slot = file_index;
|
uint slot = file_index;
|
||||||
|
|
||||||
_cur_stage = stage;
|
_cur_stage = stage;
|
||||||
|
Loading…
Reference in New Issue
Block a user