bypass ocempgui at startup

This commit is contained in:
cecilkorik 2024-01-29 22:45:56 -05:00
parent 4b2c5245e1
commit 49065c2d3f
2 changed files with 5 additions and 4 deletions

View file

@ -15,7 +15,7 @@ class PercentArray(object):
self.array = {} self.array = {}
def __setitem__(self, key, value): def __setitem__(self, key, value):
if not self.array.has_key(key): if not key in self.array:
self.order += [key] self.order += [key]
self.array[key] = value self.array[key] = value

View file

@ -9,8 +9,8 @@ import random
import starmap import starmap
import starmap_gen import starmap_gen
import gametimer import gametimer
from ocempgui.widgets import * #from ocempgui.widgets import *
from ocempgui.widgets.Constants import * #from ocempgui.widgets.Constants import *
import video import video
@ -187,7 +187,8 @@ def screen_options():
return re return re
guiscreen = screen_mainmenu() guiscreen = None
map = starmap_gen.starmap_generate()
gametimer.start_loop() gametimer.start_loop()
while True: while True: