View Single Post
Old April 13, 2020, 08:50   #63
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 56
Posts: 9,132
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by Diego Gonzalez View Post
If d = 0, d_test < 0 when choice[i] = -1

Perhaps including this:

If (d_test < 0) d_test = 7;
*facepalm*

Fix pushed, I went with
Code:
			int d_test = (d + choice[i] + 8) % 8;
which I think kills the problem dead.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote