aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/sludger.cpp
diff options
context:
space:
mode:
authoryinsimei2017-06-21 16:24:55 +0200
committerEugene Sandulenko2017-07-13 18:27:45 +0200
commit52b627bae6f13586f2767d444a3946807b627973 (patch)
treec470359be422ebb7d30438f9299a173c2e128a40 /engines/sludge/sludger.cpp
parentf89f1aad4c7ba65e6616eab4a6191e200334dbfc (diff)
downloadscummvm-rg350-52b627bae6f13586f2767d444a3946807b627973.tar.gz
scummvm-rg350-52b627bae6f13586f2767d444a3946807b627973.tar.bz2
scummvm-rg350-52b627bae6f13586f2767d444a3946807b627973.zip
SLUDGE: use Common::List to reproduce layer effects
Diffstat (limited to 'engines/sludge/sludger.cpp')
-rw-r--r--engines/sludge/sludger.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/sludge/sludger.cpp b/engines/sludge/sludger.cpp
index 4743649018..cf2a0539a1 100644
--- a/engines/sludge/sludger.cpp
+++ b/engines/sludge/sludger.cpp
@@ -572,6 +572,14 @@ bool checkColourChange(bool reset) {
#endif
return false;
}
+
+void displayBase() {
+ drawBackDrop();// Draw the room
+ drawZBuffer(cameraX, cameraY, false);
+ drawPeople();// Then add any moving characters...
+ displaySpriteLayers();
+}
+
void sludgeDisplay() {
#if 0
#if defined(HAVE_GLES2)
@@ -666,15 +674,7 @@ void sludgeDisplay() {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);// Clear The Screen
glDepthMask(GL_FALSE);
#endif
- drawBackDrop();// Draw the room
- drawZBuffer(cameraX, cameraY, false);
-#if 0
- glEnable(GL_DEPTH_TEST);
-#endif
- drawPeople();// Then add any moving characters...
-#if 0
- glDisable(GL_DEPTH_TEST);
-#endif
+ displayBase();
viewSpeech();// ...and anything being said
drawStatusBar();
displayCursor();