summaryrefslogtreecommitdiff
path: root/oldloader.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-10 08:37:41 +0000
committertron <tron@openttd.org>2006-06-10 08:37:41 +0000
commita2362674e33e66bf1d27df208db5b2250a01012e (patch)
treeddcc7798b94be03152e4b31cee4bf48bc73774e4 /oldloader.c
parentfee9ee2c05a107e458c20e8773c9adce38a54a4c (diff)
downloadopenttd-a2362674e33e66bf1d27df208db5b2250a01012e.tar.xz
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
Diffstat (limited to 'oldloader.c')
-rw-r--r--oldloader.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/oldloader.c b/oldloader.c
index 4b5258c54..cd01c356a 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -188,12 +188,11 @@ static inline uint32 ReadUint32(LoadgameState *ls)
static bool LoadChunk(LoadgameState *ls, void *base, const OldChunks *chunks)
{
const OldChunks *chunk = chunks;
- byte *ptr;
byte *base_ptr = base;
- uint i;
while (chunk->type != OC_END) {
- ptr = chunk->ptr;
+ byte* ptr = chunk->ptr;
+ uint i;
for (i = 0; i < chunk->amount; i++) {
if (ls->failed) return false;