aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/lol.cpp
diff options
context:
space:
mode:
authorathrxx2011-12-11 12:29:09 +0100
committerJohannes Schickel2011-12-26 16:18:16 +0100
commit8b618e46df21d90a1a5ad62633a2b9d3c1da0317 (patch)
tree9fb69909c5d19210a458d98dbfe4b6e40d97539b /engines/kyra/lol.cpp
parentaac7e16afa8546232a27754c6928cd43cd6ba876 (diff)
downloadscummvm-rg350-8b618e46df21d90a1a5ad62633a2b9d3c1da0317.tar.gz
scummvm-rg350-8b618e46df21d90a1a5ad62633a2b9d3c1da0317.tar.bz2
scummvm-rg350-8b618e46df21d90a1a5ad62633a2b9d3c1da0317.zip
KYRA: (EOB/LOL) - cleanup common code
(rename some stuff and move EOB/LOL common code to separate files)
Diffstat (limited to 'engines/kyra/lol.cpp')
-rw-r--r--engines/kyra/lol.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index a8dfeb5b52..8561b5e071 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -42,7 +42,7 @@ namespace Kyra {
const char *const LoLEngine::kKeymapName = "lol";
-LoLEngine::LoLEngine(OSystem *system, const GameFlags &flags) : LolEobBaseEngine(system, flags) {
+LoLEngine::LoLEngine(OSystem *system, const GameFlags &flags) : KyraRpgEngine(system, flags) {
_screen = 0;
_gui = 0;
_tim = 0;
@@ -154,9 +154,9 @@ LoLEngine::LoLEngine(OSystem *system, const GameFlags &flags) : LolEobBaseEngine
_dscWalls = 0;
_dscOvlMap = 0;
_dscShapeScaleW = 0;
- _dscShapeScaleH = 0;
+ _dscShapeScaleH = 0;
_dscShapeY = 0;
- _dscShapeOvlIndex = 0;
+ _dscShapeOvlIndex = 0;
_dscDoorMonsterX = _dscDoorMonsterY = 0;
_dscDoor4 = 0;
@@ -409,8 +409,8 @@ Common::Error LoLEngine::init() {
if (!_sound->init())
error("Couldn't init sound");
- LolEobBaseEngine::init();
-
+ KyraRpgEngine::init();
+
_wllAutomapData = new uint8[80];
memset(_wllAutomapData, 0, 80);
@@ -1091,7 +1091,7 @@ int LoLEngine::decodeCyrillic(const char *src, char *dst) {
assert(cChar < sizeof(decodeTable2));
cChar = decodeTable2[cChar];
} else if (cChar >= 0x70) {
- cChar = *src++;
+ cChar = *src++;
} else if (cChar >= 0x30) {
if (cChar < 0x60)
cChar -= 0x30;
@@ -1929,7 +1929,7 @@ void LoLEngine::setupDialogueButtons(int numStr, const char *s1, const char *s2,
_dialogueButtonString[1] = s2;
_dialogueButtonString[2] = s3;
_dialogueHighlightedButton = 0;
-
+
const ScreenDim *d = screen()->getScreenDim(5);
static uint16 posX[3];
@@ -1945,8 +1945,8 @@ void LoLEngine::setupDialogueButtons(int numStr, const char *s1, const char *s2,
} else {
int xOffs = d->w / numStr;
posX[0] = d->sx + (xOffs >> 1) - 37;
- posX[1] = posX[0] + xOffs;
- posX[2] = posX[1] + xOffs;
+ posX[1] = posX[0] + xOffs;
+ posX[2] = posX[1] + xOffs;
}
drawDialogueButtons();