# HG changeset patch # User Malte Bayer # Date 1355585528 -3600 # Node ID 049478896193c7d374958bef2e80a45766bb8e43 # Parent 633b681f7c8fde33a467428f329fbafa9b448382 hotfixes diff -r 633b681f7c8f -r 049478896193 slotUI/profiles/hell --- a/slotUI/profiles/hell Sat Dec 15 16:16:18 2012 +0100 +++ b/slotUI/profiles/hell Sat Dec 15 16:32:08 2012 +0100 @@ -1,5 +1,5 @@ [Settings] -Name= 𝌅⸧ HΞГГЯ△i⚡ΞЯ ⸦𝌅 +Name= >> HELLRAISER << Fuel=100 Accel=15 Limit=15 diff -r 633b681f7c8f -r 049478896193 slotUI/profiles/hell-utf8 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/slotUI/profiles/hell-utf8 Sat Dec 15 16:32:08 2012 +0100 @@ -0,0 +1,9 @@ +[Settings] +Name= 𝌅⸧ HΞГГЯ△i⚡ΞЯ ⸦𝌅 +Fuel=100 +Accel=15 +Limit=15 +Brake=15 + +[Stats] +Disabled=1 diff -r 633b681f7c8f -r 049478896193 slotUI/slotCli.py --- a/slotUI/slotCli.py Sat Dec 15 16:16:18 2012 +0100 +++ b/slotUI/slotCli.py Sat Dec 15 16:32:08 2012 +0100 @@ -150,7 +150,7 @@ for tst in order2: self.slot[tst["car"]]["position"] = idx # check if first position changed - if self.firstpos != tst["car"]: + if (self.firstpos != tst["car"]) and (idx == 1): self.firstpos = tst["car"] trigger_event("first_position", tst["car"] + 1) idx += 1 @@ -495,7 +495,8 @@ if (self.slot[slot]["best"] > t) or (self.slot[slot]["best"] == 0): self.slot[slot]["best"] = t if self.bestlap > t: - trigger_event("lap_record", slot + 1) + if self.freerun: + trigger_event("lap_record", slot + 1) self.bestlap = t self.slot[slot]["status"] = "IN-RACE" @@ -608,15 +609,21 @@ for slot in self.slots: if slot["position"] == 1: slot["status"] = "WINNER!" - self.render_slots() + self.render_slots() self.sysclk_last = self.sysclk - + self.scr.addstr(17,31, "Race Timer: %7.3f min" % (self.sysclk / 60), curses.color_pair(2)) + tmpmode = "RACE MODE (LAPS)" + if self.freerun: + tmpmode = "FREERUN (BEST)" + self.scr.addstr(18,31, + "%19s" % tmpmode, curses.color_pair(2)) + self.scr.refresh() except Exception: