ref: 88f635f90b28ccfbcab0eaef1b2d29eb32b5baa8
parent: 09a21797abe4a341f26b9d9db21b736fcf8965fc
author: fabien sanglard <[email protected]>
date: Sat Dec 15 13:09:34 EST 2012
Fixed a bug introduced a few commit back: updatesector was incorrect and changed the game's determinism (all recorded session could not be played again.)
--- a/Engine/src/engine.c
+++ b/Engine/src/engine.c
@@ -7073,7 +7073,7 @@
int32_t i, j;
//First check the last sector where (old_x,old_y) was before being updated to (x,y)
- if (inside(x,y,*lastKnownSector) )
+ if (inside(x,y,*lastKnownSector) == 1)
{
//We found it and (x,y) is still in the same sector: nothing to update !
return;