Fix bug, add input display
This commit is contained in:
parent
19a2aff2cc
commit
0bbbc26f2a
5 changed files with 41 additions and 11 deletions
4
map.h
4
map.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue