(svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops

This commit is contained in:
peter1138
2008-01-24 10:47:44 +00:00
parent 9c65bcea7d
commit 697b07c99c
3 changed files with 7 additions and 7 deletions

View File

@@ -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;