aboutsummaryrefslogtreecommitdiff
path: root/sword2/console.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-05-12 13:12:15 +0000
committerTorbjörn Andersson2005-05-12 13:12:15 +0000
commitd34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2 (patch)
tree38056f06dfb05964f15f120be8d9aaaf20f339b6 /sword2/console.cpp
parentd6a20a231b30242645860f453895f11d67a624e5 (diff)
downloadscummvm-rg350-d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2.tar.gz
scummvm-rg350-d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2.tar.bz2
scummvm-rg350-d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2.zip
Whitespace: "(type *)something" instead of "(type *) something", because
that's how we write it in most other places. svn-id: r18069
Diffstat (limited to 'sword2/console.cpp')
-rw-r--r--sword2/console.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/sword2/console.cpp b/sword2/console.cpp
index 01329eaf1f..f09d268731 100644
--- a/sword2/console.cpp
+++ b/sword2/console.cpp
@@ -180,8 +180,8 @@ bool Debugger::Cmd_Help(int argc, const char **argv) {
}
static int compare_blocks(const void *p1, const void *p2) {
- const MemBlock *m1 = *(const MemBlock * const *) p1;
- const MemBlock *m2 = *(const MemBlock * const *) p2;
+ const MemBlock *m1 = *(const MemBlock * const *)p1;
+ const MemBlock *m2 = *(const MemBlock * const *)p2;
if (m1->size < m2->size)
return 1;
@@ -194,7 +194,7 @@ bool Debugger::Cmd_Mem(int argc, const char **argv) {
int16 numBlocks = _vm->_memory->getNumBlocks();
MemBlock *memBlocks = _vm->_memory->getMemBlocks();
- MemBlock **blocks = (MemBlock **) malloc(numBlocks * sizeof(MemBlock));
+ MemBlock **blocks = (MemBlock **)malloc(numBlocks * sizeof(MemBlock));
int i, j;
@@ -209,7 +209,7 @@ bool Debugger::Cmd_Mem(int argc, const char **argv) {
DebugPrintf("---------------------------------------------------------------------------\n");
for (i = 0; i < numBlocks; i++) {
- StandardHeader *head = (StandardHeader *) blocks[i]->ptr;
+ StandardHeader *head = (StandardHeader *)blocks[i]->ptr;
const char *type;
switch (head->fileType) {
@@ -320,7 +320,7 @@ bool Debugger::Cmd_ResList(int argc, const char **argv) {
for (uint i = 0; i < numResFiles; i++) {
if (resList[i].ptr && resList[i].refCount >= minCount) {
- StandardHeader *head = (StandardHeader *) resList[i].ptr;
+ StandardHeader *head = (StandardHeader *)resList[i].ptr;
DebugPrintf("%-4d: %-35s refCount: %-3d\n", i, head->name, resList[i].refCount);
}
}
@@ -445,7 +445,7 @@ bool Debugger::Cmd_ResLook(int argc, const char **argv) {
}
// Open up the resource and take a look inside!
- StandardHeader *file_header = (StandardHeader *) _vm->_resman->openResource(res);
+ StandardHeader *file_header = (StandardHeader *)_vm->_resman->openResource(res);
switch (file_header->fileType) {
case ANIMATION_FILE:
@@ -512,12 +512,12 @@ bool Debugger::Cmd_RunList(int argc, const char **argv) {
uint32 runList = _vm->_logic->getRunList();
if (runList) {
- game_object_list = (uint32 *) (_vm->_resman->openResource(runList) + sizeof(StandardHeader));
+ game_object_list = (uint32 *)(_vm->_resman->openResource(runList) + sizeof(StandardHeader));
DebugPrintf("Runlist number %d\n", runList);
for (int i = 0; game_object_list[i]; i++) {
- file_header = (StandardHeader *) _vm->_resman->openResource(game_object_list[i]);
+ file_header = (StandardHeader *)_vm->_resman->openResource(game_object_list[i]);
DebugPrintf("%d %s\n", game_object_list[i], file_header->name);
_vm->_resman->closeResource(game_object_list[i]);
}