From 9b72a021a22bc3d4f400547e78f0c4d6b18249d6 Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Tue, 14 Mar 2023 19:53:17 +0200 Subject: [PATCH] Add comment --- src/object.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/object.cc b/src/object.cc index e40a40d..be1a5a3 100644 --- a/src/object.cc +++ b/src/object.cc @@ -109,6 +109,10 @@ static int _centerToUpperLeft = 0; static int gObjectFindElevation = 0; // 0x519634 +/** + * This variable holds "tile where to lookup when current list ends". + * +*/ static int gObjectFindTile = 0; // 0x519638 @@ -2247,6 +2251,8 @@ Object* objectFindNextAtElevation() Object* objectFindFirstAtLocation(int elevation, int tile) { gObjectFindElevation = elevation; + + // Meaningless assignment because it is not used in objectFindNextAtLocation gObjectFindTile = tile; ObjectListNode* objectListNode = gObjectListHeadByTile[tile];