Skip to content

Commit

Permalink
WINTERMUTE: Avoid including BaseGame in BaseRegion.
Browse files Browse the repository at this point in the history
  • Loading branch information
somaen committed Apr 17, 2013
1 parent 769b108 commit 95164a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions engines/wintermute/base/base_region.cpp
Expand Up @@ -29,7 +29,7 @@
#include "engines/wintermute/base/base_region.h"
#include "engines/wintermute/base/base_parser.h"
#include "engines/wintermute/base/base_dynamic_buffer.h"
#include "engines/wintermute/base/base_game.h"
#include "engines/wintermute/base/base_engine.h"
#include "engines/wintermute/base/scriptables/script.h"
#include "engines/wintermute/base/scriptables/script_stack.h"
#include "engines/wintermute/base/scriptables/script_value.h"
Expand Down Expand Up @@ -104,7 +104,7 @@ bool BaseRegion::pointInRegion(int x, int y) {
bool BaseRegion::loadFile(const char *filename) {
byte *buffer = BaseFileManager::getEngineInstance()->readWholeFile(filename);
if (buffer == nullptr) {
_gameRef->LOG(0, "BaseRegion::LoadFile failed for file '%s'", filename);
BaseEngine::LOG(0, "BaseRegion::LoadFile failed for file '%s'", filename);
return STATUS_FAILED;
}

Expand All @@ -113,7 +113,7 @@ bool BaseRegion::loadFile(const char *filename) {
setFilename(filename);

if (DID_FAIL(ret = loadBuffer(buffer, true))) {
_gameRef->LOG(0, "Error parsing REGION file '%s'", filename);
BaseEngine::LOG(0, "Error parsing REGION file '%s'", filename);
}


Expand Down Expand Up @@ -154,7 +154,7 @@ bool BaseRegion::loadBuffer(byte *buffer, bool complete) {

if (complete) {
if (parser.getCommand((char **)&buffer, commands, (char **)&params) != TOKEN_REGION) {
_gameRef->LOG(0, "'REGION' keyword expected.");
BaseEngine::LOG(0, "'REGION' keyword expected.");
return STATUS_FAILED;
}
buffer = params;
Expand Down Expand Up @@ -206,7 +206,7 @@ bool BaseRegion::loadBuffer(byte *buffer, bool complete) {
}
}
if (cmd == PARSERR_TOKENNOTFOUND) {
_gameRef->LOG(0, "Syntax error in REGION definition");
BaseEngine::LOG(0, "Syntax error in REGION definition");
return STATUS_FAILED;
}

Expand Down

0 comments on commit 95164a8

Please sign in to comment.