diff options
| author | Max Horn | 2010-06-25 16:16:29 +0000 |
|---|---|---|
| committer | Max Horn | 2010-06-25 16:16:29 +0000 |
| commit | 6ee82a20276d213a06d43ff731d197f5a92a09d7 (patch) | |
| tree | d9bc631c10aa56d2ba6d47b2cdcb644696fee0a4 /engines/sci/engine/kpathing.cpp | |
| parent | 23d384e6b88f4023b9150401a70a4efdf9bae018 (diff) | |
| download | scummvm-rg350-6ee82a20276d213a06d43ff731d197f5a92a09d7.tar.gz scummvm-rg350-6ee82a20276d213a06d43ff731d197f5a92a09d7.tar.bz2 scummvm-rg350-6ee82a20276d213a06d43ff731d197f5a92a09d7.zip | |
SCI: Introduce SciGameId enum
svn-id: r50273
Diffstat (limited to 'engines/sci/engine/kpathing.cpp')
| -rw-r--r-- | engines/sci/engine/kpathing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp index ba6fb9bb6e..fdaae3e121 100644 --- a/engines/sci/engine/kpathing.cpp +++ b/engines/sci/engine/kpathing.cpp @@ -1090,7 +1090,7 @@ static Polygon *convert_polygon(EngineState *s, reg_t polygon) { // WORKAROUND: broken polygon in lsl1sci, room 350, after opening elevator // Polygon has 17 points but size is set to 19 - if ((size == 19) && g_sci->getGameId() == "lsl1sci") { + if ((size == 19) && g_sci->getGameId() == GID_LSL1) { if ((s->currentRoomNumber() == 350) && (read_point(segMan, points, 18) == Common::Point(108, 137))) { debug(1, "Applying fix for broken polygon in lsl1sci, room 350"); @@ -1212,7 +1212,7 @@ static PathfindingState *convert_polygon_set(EngineState *s, reg_t poly_list, Co // WORKAROUND LSL5 room 660. Priority glitch due to us choosing a different path // than SSCI. Happens when Patti walks to the control room. - if (g_sci->getGameId() == "lsl5" && (s->currentRoomNumber() == 660) && (Common::Point(67, 131) == *new_start) && (Common::Point(229, 101) == *new_end)) { + if (g_sci->getGameId() == GID_LSL5 && (s->currentRoomNumber() == 660) && (Common::Point(67, 131) == *new_start) && (Common::Point(229, 101) == *new_end)) { debug(1, "[avoidpath] Applying fix for priority problem in LSL5, room 660"); pf_s->_prependPoint = new_start; new_start = new Common::Point(77, 107); |
