aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorD G Turner2019-09-05 18:07:59 +0100
committerD G Turner2019-09-05 18:10:31 +0100
commitd74724eee0023673515484691d00ceda7946e801 (patch)
tree4bf5c4134c43ef86c58aed61d1c72a63e887759c /engines/hdb
parentac912a5023c83c4ac87a6e77c213f99d501cdd6b (diff)
downloadscummvm-rg350-d74724eee0023673515484691d00ceda7946e801.tar.gz
scummvm-rg350-d74724eee0023673515484691d00ceda7946e801.tar.bz2
scummvm-rg350-d74724eee0023673515484691d00ceda7946e801.zip
HDB: Fix GCC Compiler Warnings for Set-But-Unused Variables
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/ai-lists.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/hdb/ai-lists.cpp b/engines/hdb/ai-lists.cpp
index 27dbc7aff7..f728d5ac6f 100644
--- a/engines/hdb/ai-lists.cpp
+++ b/engines/hdb/ai-lists.cpp
@@ -676,15 +676,15 @@ bool AI::checkTeleportList(AIEntity *e, int x, int y) {
int targetY = _teleporters[i].y1;
int targetX2 = _teleporters[i].x2;
int targetY2 = _teleporters[i].y2;
- AIDir dir1 = _teleporters[i].dir1;
+ //AIDir dir1 = _teleporters[i].dir1;
AIDir dir2 = _teleporters[i].dir2;
- int level1 = _teleporters[i].level1;
+ //int level1 = _teleporters[i].level1;
int level2 = _teleporters[i].level2;
int usable1 = _teleporters[i].usable1;
- int usable2 = _teleporters[i].usable2;
+ //int usable2 = _teleporters[i].usable2;
int anim1 = _teleporters[i].anim1;
int anim2 = _teleporters[i].anim2;
- const char *luaFuncUse1 = _teleporters[i].luaFuncUse1;
+ //const char *luaFuncUse1 = _teleporters[i].luaFuncUse1;
const char *luaFuncUse2 = _teleporters[i].luaFuncUse2;
// Choose which set of co-ordinates is the target
@@ -693,15 +693,15 @@ bool AI::checkTeleportList(AIEntity *e, int x, int y) {
targetY = _teleporters[i].y2;
targetX2 = _teleporters[i].x1;
targetY2 = _teleporters[i].y1;
- dir1 = _teleporters[i].dir2;
+ //dir1 = _teleporters[i].dir2;
dir2 = _teleporters[i].dir1;
- level1 = _teleporters[i].level2;
+ //level1 = _teleporters[i].level2;
level2 = _teleporters[i].level1;
usable1 = _teleporters[i].usable2;
- usable2 = _teleporters[i].usable1;
+ //usable2 = _teleporters[i].usable1;
anim1 = _teleporters[i].anim2;
anim2 = _teleporters[i].anim1;
- luaFuncUse1 = _teleporters[i].luaFuncUse2;
+ //luaFuncUse1 = _teleporters[i].luaFuncUse2;
luaFuncUse2 = _teleporters[i].luaFuncUse1;
}