AGS: Make turnlooporder array const

This commit is contained in:
Paul Gilbert 2021-03-09 21:25:02 -08:00
parent c133fec9eb
commit d605b11c4f
2 changed files with 2 additions and 2 deletions

View File

@ -1564,7 +1564,7 @@ int Character_GetSpeakingFrame(CharacterInfo *chaa) {
//=============================================================================
// order of loops to turn character in circle from down to down
int turnlooporder[8] = {0, 6, 1, 7, 3, 5, 2, 4};
const int turnlooporder[8] = {0, 6, 1, 7, 3, 5, 2, 4};
void walk_character(int chac, int tox, int toy, int ignwal, bool autoWalkAnims) {
CharacterInfo *chin = &_GP(game).chars[chac];

View File

@ -220,7 +220,7 @@ Rect GetCharacterRoomBBox(int charid, bool use_frame_0 = false);
PViewport FindNearestViewport(int charid);
// order of loops to turn character in circle from down to down
extern int turnlooporder[8];
extern const int turnlooporder[8];
} // namespace AGS3