skip(1)
kk = 0
for wham in hits:
- if not kk < len(game.enemies):
- # Should never happen.
- break
if wham == 0:
continue
dustfac = randreal(0.9, 1.0)
iprompt = True
key = scanner.nexttok()
itemp = "verbose"
- if key == "IHREAL":
- delta.j = scanner.real
- else:
+ if key != "IHREAL":
huh()
raise TrekError
+ delta.j = scanner.real
key = scanner.nexttok()
- if key == "IHREAL":
- delta.i = scanner.real
- else:
- delta.i = 0
+ if key != "IHREAL":
+ huh()
+ raise TrekError
+ delta.i = scanner.real
# Check for zero movement
if delta.i == 0 and delta.j == 0:
scanner.chew()
huh()
else:
break
- prout("COMMAND> %s" % cmd)
+ if game.options & OPTION_CURSES:
+ prout("COMMAND> %s" % cmd)
if cmd == "SRSCAN": # srscan
srscan()
elif cmd == "STATUS": # status