From 8bcaf3e06c5c61d82686be4cbf5699f71db3e4a3 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Thu, 18 Apr 2013 12:24:42 +0200 Subject: WINTERMUTE: Use BaseEngine for Logging, not _gameRef in base-classes. --- engines/wintermute/base/base.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/wintermute/base/base.cpp') diff --git a/engines/wintermute/base/base.cpp b/engines/wintermute/base/base.cpp index c0459b0ce5..d01972b82f 100644 --- a/engines/wintermute/base/base.cpp +++ b/engines/wintermute/base/base.cpp @@ -28,6 +28,7 @@ #include "engines/wintermute/base/base.h" #include "engines/wintermute/base/base_game.h" +#include "engines/wintermute/base/base_engine.h" #include "engines/wintermute/base/base_parser.h" #include "engines/wintermute/base/base_dynamic_buffer.h" @@ -105,7 +106,7 @@ bool BaseClass::parseEditorProperty(byte *buffer, bool complete) { if (complete) { if (parser.getCommand((char **)&buffer, commands, (char **)¶ms) != TOKEN_EDITOR_PROPERTY) { - _gameRef->LOG(0, "'EDITOR_PROPERTY' keyword expected."); + BaseEngine::LOG(0, "'EDITOR_PROPERTY' keyword expected."); return STATUS_FAILED; } buffer = params; @@ -143,7 +144,7 @@ bool BaseClass::parseEditorProperty(byte *buffer, bool complete) { delete[] propValue; propName = nullptr; propValue = nullptr; - _gameRef->LOG(0, "Syntax error in EDITOR_PROPERTY definition"); + BaseEngine::LOG(0, "Syntax error in EDITOR_PROPERTY definition"); return STATUS_FAILED; } if (cmd == PARSERR_GENERIC || propName == nullptr || propValue == nullptr) { @@ -151,7 +152,7 @@ bool BaseClass::parseEditorProperty(byte *buffer, bool complete) { delete[] propValue; propName = nullptr; propValue = nullptr; - _gameRef->LOG(0, "Error loading EDITOR_PROPERTY definition"); + BaseEngine::LOG(0, "Error loading EDITOR_PROPERTY definition"); return STATUS_FAILED; } -- cgit v1.2.3