Browse Source

Adds an autostep limits to 0x40000 steps

Yann Weber 6 years ago
parent
commit
733743ba57
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      gte/world.py

+ 1
- 1
gte/world.py View File

42
         steps = 0
42
         steps = 0
43
         lim_reach = 0
43
         lim_reach = 0
44
         retry_lim = 0
44
         retry_lim = 0
45
-        while lim_reach < 2:
45
+        while lim_reach < 2 and steps < 0x40000:
46
             for _ in range(3000):
46
             for _ in range(3000):
47
                 for turmit in turmits:
47
                 for turmit in turmits:
48
                     turmit()
48
                     turmit()

Loading…
Cancel
Save