(svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
This commit is contained in:
@@ -1636,7 +1636,8 @@ static bool LoadOldMain(LoadgameState *ls)
|
||||
|
||||
/* Make sure the available engines are really available, otherwise
|
||||
* we will get a "new vehicle"-spree. */
|
||||
for (Engine *e = _engines; e != endof(_engines); e++) {
|
||||
Engine *e;
|
||||
FOR_ALL_ENGINES(e) {
|
||||
if (_date >= (e->intro_date + 365)) {
|
||||
e->flags = (e->flags & ~ENGINE_EXCLUSIVE_PREVIEW) | ENGINE_AVAILABLE;
|
||||
e->player_avail = (byte)-1;
|
||||
|
Reference in New Issue
Block a user