From 10a74b2e6c351814f6006afaa48869298c3c2afc Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 16 Sep 2019 23:11:40 +0200 Subject: HDB: Turn a couple of arrays into static const --- engines/hdb/ai-player.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') 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 -- cgit v1.2.3