Mercurial > hg > openttd
changeset 8251:80ebc72578a3 draft
(svn r11815) -Codechange (r11802): some compilers were giving a false warning about uninitialized variable
author | smatz <smatz@openttd.org> |
---|---|
date | Fri, 11 Jan 2008 22:29:47 +0000 |
parents | 977a6fb02427 |
children | 9961adeaa4a0 |
files | src/signal.cpp |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/signal.cpp +++ b/src/signal.cpp @@ -462,15 +462,13 @@ Owner owner = OWNER_NONE; // owner whose signals we are updating - while (!_globset.IsEmpty()) { + TileIndex tile; + DiagDirection dir; + + while (_globset.Get(&tile, &dir)) { assert(_tbuset.IsEmpty()); assert(_tbdset.IsEmpty()); - TileIndex tile; - DiagDirection dir; - - _globset.Get(&tile, &dir); - /* After updating signal, data stored are always MP_RAILWAY with signals. * Other situations happen when data are from outside functions - * modification of railbits (including both rail building and removal),