diff options
author | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
commit | 2cc2154ad26b96b032df2f4fca0ce1634e6330b2 (patch) | |
tree | 646e010d91defd66326958b9e15c3eb36077760c /spritecache.c | |
parent | 01638700067b9720c187598ad6b4bf786e0e63c1 (diff) | |
download | openttd-2cc2154ad26b96b032df2f4fca0ce1634e6330b2.tar.xz |
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
Diffstat (limited to 'spritecache.c')
-rw-r--r-- | spritecache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spritecache.c b/spritecache.c index df64970fa..d7357f7f2 100644 --- a/spritecache.c +++ b/spritecache.c @@ -4,6 +4,7 @@ #include "openttd.h" #include "debug.h" #include "functions.h" +#include "macros.h" #include "spritecache.h" #include "table/sprites.h" #include "fileio.h" @@ -334,7 +335,7 @@ static void* AllocSprite(size_t mem_req) /* Align this to an uint32 boundary. This also makes sure that the 2 least * bits are not used, so we could use those for other things. */ - mem_req = (mem_req + sizeof(uint32) - 1) & ~(sizeof(uint32) - 1); + mem_req = ALIGN(mem_req, sizeof(uint32)); for (;;) { MemBlock* s; |