summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-03-26 19:18:30 +0000
committerpeter1138 <peter1138@openttd.org>2008-03-26 19:18:30 +0000
commitf9e7b70f91de5b70729cdb8c8a28ed9fbb762abb (patch)
treec4618299e64a2dde18667892a4941ebfd400ee54 /src
parent989f96750911c338eba68a88a71a437f4c1b1603 (diff)
downloadopenttd-f9e7b70f91de5b70729cdb8c8a28ed9fbb762abb.tar.xz
(svn r12436) -Cleanup: minor coding style
Diffstat (limited to 'src')
-rw-r--r--src/spritecache.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp
index da0f6892f..b4b3c57f0 100644
--- a/src/spritecache.cpp
+++ b/src/spritecache.cpp
@@ -23,11 +23,11 @@ uint _sprite_cache_size = 4;
struct SpriteCache {
- void *ptr;
+ void *ptr;
uint32 id;
- uint32 file_pos;
+ uint32 file_pos;
uint16 file_slot;
- int16 lru;
+ int16 lru;
};
@@ -338,8 +338,7 @@ static void CompactSpriteCache()
assert(!(next->size & S_FREE_MASK));
/* If the next block is the sentinel block, we can safely return */
- if (next->size == 0)
- break;
+ if (next->size == 0) break;
/* Locate the sprite belonging to the next pointer. */
for (i = 0; GetSpriteCache(i)->ptr != next->data; i++) {