Fix bug, add input display

This commit is contained in:
Miloslav Ciz 2025-05-28 22:05:50 +02:00
parent 19a2aff2cc
commit 0bbbc26f2a
5 changed files with 41 additions and 11 deletions

4
map.h
View file

@ -392,10 +392,10 @@ void _LCR_mapComputeHash(void)
LCR_currentMap.hash = 11 + LCR_currentMap.environment;
for (int i = 0; i < LCR_currentMap.blockCount * LCR_BLOCK_SIZE + 4; ++i)
for (int i = 0; i < 4 + LCR_currentMap.blockCount * LCR_BLOCK_SIZE; ++i)
{
LCR_currentMap.hash = LCR_currentMap.hash * 101 + *data;
data = i != 3 ? data + 1 : LCR_currentMap.blocks;
data = (i != 3) ? data + 1 : LCR_currentMap.blocks;
}
LCR_currentMap.hash *= 251;