From 4c3a68027f7f84a58664f77c847d24ab5b9757e4 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 17 Mar 2004 09:03:15 +0000 Subject: Use the same syntax for accessing script variables as BS1 does, i.e. now it's Logic::_scriptVars[ID] instead of just ID. Apart from looking cool, it makes it much easier to tell the difference between variables and constants when looking at the code. Of course, this sort of sweeping changes is jolly good for introducing truly weird regressions, which is why I waited until after 0.6.0. svn-id: r13331 --- sword2/memory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sword2/memory.cpp') diff --git a/sword2/memory.cpp b/sword2/memory.cpp index 4d45e45682..9ae7af92c8 100644 --- a/sword2/memory.cpp +++ b/sword2/memory.cpp @@ -73,7 +73,7 @@ MemoryManager::MemoryManager(Sword2Engine *vm) : _vm(vm) { _memList[0].size = _totalFreeMemory; _memList[0].parent = -1; // we are base - for now _memList[0].child = -1; // we are the end as well - _memList[0].uid = (uint32)UID_memman; // init id + _memList[0].uid = (uint32) UID_memman; // init id _baseMemBlock = 0; // for now } @@ -206,7 +206,7 @@ Memory *MemoryManager::lowLevelAlloc(uint32 size, uint32 type, uint32 unique_id) } _memList[spawn].state = MEM_free; // new block is free - _memList[spawn].uid = (uint32)UID_memman; // a memman created bloc + _memList[spawn].uid = (uint32) UID_memman; // a memman created bloc // size of the existing parent free block minus the size of the new // space Talloc'ed. @@ -253,7 +253,7 @@ void MemoryManager::freeMemory(Memory *block) { // once you've done this the memory may be recycled block->state = MEM_free; - block->uid = (uint32)UID_memman; // belongs to the memory manager again + block->uid = (uint32) UID_memman; // belongs to the memory manager again #ifdef MEMDEBUG debugMemory(); -- cgit v1.2.3