Bugfix: 'turn' could become >3.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11385 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
810586ff09
commit
a5b96fce32
@ -255,7 +255,7 @@ Controller* World::loadAIController(AbstractKart *kart)
|
||||
int turn = 1;
|
||||
#elif defined(USE_ALL_AIS)
|
||||
static int turn=3;
|
||||
turn=(turn++) % 3;
|
||||
turn=(turn+1) % 3;
|
||||
#else
|
||||
int turn=0; // use default AU
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user