diff options
author | Nipun Garg | 2019-07-04 01:20:01 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:10 +0200 |
commit | 1b2437900cd30b0d6b7626a9ff2e59e063598b01 (patch) | |
tree | 32375d2696a4d8d2677ec15cf306f5cc33dbc036 /engines | |
parent | 9b6e83451fe5dc24801e6c6ea1bf0116b5b6fd7d (diff) | |
download | scummvm-rg350-1b2437900cd30b0d6b7626a9ff2e59e063598b01.tar.gz scummvm-rg350-1b2437900cd30b0d6b7626a9ff2e59e063598b01.tar.bz2 scummvm-rg350-1b2437900cd30b0d6b7626a9ff2e59e063598b01.zip |
HDB: Do not declare AIEntity every frame
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/hdb.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 4c48e06e59..b9ae6c100f 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -692,6 +692,8 @@ Common::Error HDBGame::run() { lua->executeFile("test.lua"); #endif + AIEntity *e; + while (!shouldQuit()) { Common::Event event; @@ -744,7 +746,7 @@ Common::Error HDBGame::run() { _ai->processCines(); //_window->drawDialog(); - AIEntity *e = _ai->getPlayer(); + e = _ai->getPlayer(); if (e && e->level < 2) _ai->drawWayPoints(); |