aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/hdb.cpp
diff options
context:
space:
mode:
authorStrangerke2019-07-23 08:28:10 +0200
committerEugene Sandulenko2019-09-03 17:17:26 +0200
commit4b65e396c801e1a08c89de79ebfeaf2f20ada0a0 (patch)
tree102533b4424a370fa2b1c5c589053165d1c9bead /engines/hdb/hdb.cpp
parentbf57f7befb5af0c7f3d95b96d6fd1f8a46c056ef (diff)
downloadscummvm-rg350-4b65e396c801e1a08c89de79ebfeaf2f20ada0a0.tar.gz
scummvm-rg350-4b65e396c801e1a08c89de79ebfeaf2f20ada0a0.tar.bz2
scummvm-rg350-4b65e396c801e1a08c89de79ebfeaf2f20ada0a0.zip
HDB: Reduce some variable scopes, some janitorial work
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r--engines/hdb/hdb.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 837bb962d3..3fb963af5a 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -908,10 +908,7 @@ Common::Error HDBGame::run() {
lua->executeFile("test.lua");
#endif
- AIEntity *e;
-
while (!shouldQuit()) {
-
Common::Event event;
while (g_system->getEventManager()->pollEvent(event)) {
switch (event.type) {
@@ -960,7 +957,7 @@ Common::Error HDBGame::run() {
_ai->processCines();
//_window->drawDialog();
- e = _ai->getPlayer();
+ AIEntity *e = _ai->getPlayer();
if (e && e->level < 2)
_ai->drawWayPoints();