aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorJoost Peters2008-12-24 16:13:09 +0000
committerJoost Peters2008-12-24 16:13:09 +0000
commite98f573688875dd53dfd14131b11382e5663b78c (patch)
tree388684393faa0fedb68b3957c451c7f4999151d7 /engines/tinsel
parent85bfce72d306df155dbbd79a20aac7ca0f4595fb (diff)
downloadscummvm-rg350-e98f573688875dd53dfd14131b11382e5663b78c.tar.gz
scummvm-rg350-e98f573688875dd53dfd14131b11382e5663b78c.tar.bz2
scummvm-rg350-e98f573688875dd53dfd14131b11382e5663b78c.zip
add comment for clarification
svn-id: r35528
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/heapmem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/heapmem.cpp b/engines/tinsel/heapmem.cpp
index 9e19841562..704f3c8104 100644
--- a/engines/tinsel/heapmem.cpp
+++ b/engines/tinsel/heapmem.cpp
@@ -285,7 +285,7 @@ MEM_NODE *MemoryAlloc(int flags, long size) {
}
#ifdef SCUMM_NEED_ALIGNMENT
- size = (size + 3) & ~3;
+ size = (size + 3) & ~3; //round up to nearest multiple of 4, this ensures the addresses that are returned are 4-byte aligned as well.
#endif
while ((flags & DWM_NOALLOC) == 0 && bCompacted) {