diff options
author | Strangerke | 2019-09-16 23:11:40 +0200 |
---|---|---|
committer | Strangerke | 2019-09-16 23:11:40 +0200 |
commit | 10a74b2e6c351814f6006afaa48869298c3c2afc (patch) | |
tree | 114ec61f7b97a379f9e99d71be29511891716147 /engines/hdb/ai-player.cpp | |
parent | 35ff6adfd54af20d65130d8fb387a195a56c7b86 (diff) | |
download | scummvm-rg350-10a74b2e6c351814f6006afaa48869298c3c2afc.tar.gz scummvm-rg350-10a74b2e6c351814f6006afaa48869298c3c2afc.tar.bz2 scummvm-rg350-10a74b2e6c351814f6006afaa48869298c3c2afc.zip |
HDB: Turn a couple of arrays into static const
Diffstat (limited to 'engines/hdb/ai-player.cpp')
-rw-r--r-- | engines/hdb/ai-player.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hdb/ai-player.cpp b/engines/hdb/ai-player.cpp index 70e527fe3f..059da9dfc0 100644 --- a/engines/hdb/ai-player.cpp +++ b/engines/hdb/ai-player.cpp @@ -501,7 +501,9 @@ void aiPlayerDraw(AIEntity *e, int mx, int my) { } void aiGemAttackInit(AIEntity *e) { - int xv[5] = {9, 0, 0, -1, 1}, yv[5] = {9, -1, 1, 0, 0}; + static const int xv[5] = {9, 0, 0, -1, 1}; + static const int yv[5] = {9, -1, 1, 0, 0}; + e->moveSpeed = kPlayerMoveSpeed << 1; g_hdb->_ai->setEntityGoal(e, e->tileX + xv[e->dir], e->tileY + yv[e->dir]); e->state = STATE_MOVEDOWN; // so it will draw & animate |