DistributedFindFour compile fix

This commit is contained in:
DenialMC 2015-05-13 14:45:12 +03:00
parent 18b5e46084
commit c030f3be23

View file

@ -15,6 +15,7 @@ from toontown.toonbase import ToontownGlobals
from direct.distributed.ClockDelta import *
from otp.otpbase import OTPGlobals
from direct.showbase import PythonUtil
import random
class DistributedFindFour(DistributedNode.DistributedNode):
@ -565,8 +566,7 @@ class DistributedFindFour(DistributedNode.DistributedNode):
else:
hasfound = False
while hasfound == False:
from random import *
x = randint(0, 6)
x = random.randint(0, 6)
if self.board[0][x] == 0:
self.d_requestMove(x)
self.moveCol = None