aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sky/compact.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/sky/compact.cpp b/engines/sky/compact.cpp
index eccca6795b..35701e43a1 100644
--- a/engines/sky/compact.cpp
+++ b/engines/sky/compact.cpp
@@ -30,8 +30,6 @@
#include "sky/compact.h"
#include "gui/message.h"
-extern int gDebugLevel;
-
namespace Sky {
#define SKY_CPT_SIZE 419427
@@ -269,9 +267,7 @@ Compact *SkyCompact::fetchCpt(uint16 cptId) {
return NULL;
assert(((cptId >> 12) < _numDataLists) && ((cptId & 0xFFF) < _dataListLen[cptId >> 12]));
- if (gDebugLevel >= 8) {
- debug(8, "Loading Compact %s [%s] (%04X=%d,%d)", _cptNames[cptId >> 12][cptId & 0xFFF], nameForType(_cptTypes[cptId >> 12][cptId & 0xFFF]), cptId, cptId >> 12, cptId & 0xFFF);
- }
+ debug(8, "Loading Compact %s [%s] (%04X=%d,%d)", _cptNames[cptId >> 12][cptId & 0xFFF], nameForType(_cptTypes[cptId >> 12][cptId & 0xFFF]), cptId, cptId >> 12, cptId & 0xFFF);
return _compacts[cptId >> 12][cptId & 0xFFF];
}