diff options
Diffstat (limited to 'engines/teenagent/callbacks.cpp')
-rw-r--r-- | engines/teenagent/callbacks.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/teenagent/callbacks.cpp b/engines/teenagent/callbacks.cpp index ae498478a4..f8bb142bd8 100644 --- a/engines/teenagent/callbacks.cpp +++ b/engines/teenagent/callbacks.cpp @@ -34,7 +34,7 @@ namespace TeenAgent { #define INC_FLAG(addr) (++*res->dseg.ptr(addr)) void TeenAgentEngine::rejectMessage() { - Resources * res = Resources::instance(); + Resources *res = Resources::instance(); //random reject message: uint i = _rnd.getRandomNumber(3); //debug(0, "reject message: %s", (const char *)res->dseg.ptr(res->dseg.get_word(0x339e + 2 * i))); @@ -46,9 +46,9 @@ bool TeenAgentEngine::processCallback(uint16 addr) { if (addr == 0) return false; - Resources * res = Resources::instance(); + Resources *res = Resources::instance(); debug(0, "processCallback(%04x)", addr); - byte * code = res->cseg.ptr(addr); + byte *code = res->cseg.ptr(addr); //try trivial callbacks first if (code[0] == 0xbb && code[3] == 0xe8 && code[6] == 0xc3) { @@ -1355,7 +1355,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { inventory->add(11); disableObject(1); - byte * scene_15_ons = scene->getOns(15); //patch ons for the scene 15 + byte *scene_15_ons = scene->getOns(15); //patch ons for the scene 15 scene_15_ons[0] = 0; byte f = GET_FLAG(0xDB98) + 1; @@ -2501,7 +2501,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { return true; case 0x862c: - displayMessage(CHECK_FLAG(0xDBB0, 1)? 0x4882: 0x3457); + displayMessage(CHECK_FLAG(0xDBB0, 1) ? 0x4882 : 0x3457); return true; case 0x86a9: //correcting height of the pole with spanner @@ -2561,7 +2561,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { setOns(4, 0); { - Walkbox * w = scene->getWalkbox(0); + Walkbox *w = scene->getWalkbox(0); w->rect.clear(); w->save(); } @@ -2747,21 +2747,21 @@ bool TeenAgentEngine::processCallback(uint16 addr) { inventory->remove(36); SET_FLAG(0xDBAD, 1); { - Object * o = scene->getObject(7); + Object *o = scene->getObject(7); o->actor_rect.left = o->actor_rect.right = 297; o->actor_rect.top = o->actor_rect.bottom = 181; o->actor_orientation = 1; o->save(); } { - Object * o = scene->getObject(9); + Object *o = scene->getObject(9); o->actor_rect.left = o->actor_rect.right = 297; o->actor_rect.top = o->actor_rect.bottom = 181; o->actor_orientation = 1; o->save(); } { - Walkbox * w = scene->getWalkbox(0); + Walkbox *w = scene->getWalkbox(0); w->rect.right = 266; w->rect.bottom = 193; w->save(); @@ -3904,7 +3904,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { SET_FLAG(0, 0); processCallback(0x9a7a); INC_FLAG(0xDBA6); - switch(GET_FLAG(0xDBA6)) { + switch (GET_FLAG(0xDBA6)) { case 1: displayMessage(0x39ae); break; @@ -4014,7 +4014,7 @@ bool TeenAgentEngine::processCallback(uint16 addr) { moveTo(186, 198, 2, true); moveTo(220, 198, 4); { - Walkbox * w = scene->getWalkbox(0); + Walkbox *w = scene->getWalkbox(0); w->rect.left = 0; w->rect.bottom = 199; w->save(); |