projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3bfedb0
)
Spot a use of normal distribution that wasn't encapsulated.
author
Eric S. Raymond
<esr@thyrsus.com>
Sat, 21 Oct 2006 19:49:34 +0000
(19:49 +0000)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sat, 21 Oct 2006 19:49:34 +0000
(19:49 +0000)
src/sst.py
patch
|
blob
|
history
diff --git
a/src/sst.py
b/src/sst.py
index 99daaa7199a72536fef9d115dbc95069906e70a9..fcbc0597a2610b2eb0b6c2d11fce61b8efcb5b5c 100644
(file)
--- a/
src/sst.py
+++ b/
src/sst.py
@@
-3995,7
+3995,7
@@
def timwrp():
prout(_("Spock has reconstructed a correct star chart from memory"))
else:
# Go forward in time
prout(_("Spock has reconstructed a correct star chart from memory"))
else:
# Go forward in time
- game.optime =
-0.5*game.intime*math.log(randreal()
)
+ game.optime =
expran(0.5*game.intime
)
prout(_("You are traveling forward in time %d stardates.") % int(game.optime))
# cheat to make sure no tractor beams occur during time warp
postpone(FTBEAM, game.optime)
prout(_("You are traveling forward in time %d stardates.") % int(game.optime))
# cheat to make sure no tractor beams occur during time warp
postpone(FTBEAM, game.optime)
@@
-5412,12
+5412,10
@@
def setup():
def choose():
"Choose your game type."
def choose():
"Choose your game type."
- global thing
while True:
while True:
- game.tourn = 0
+ game.tourn =
game.length =
0
game.thawed = False
game.skill = SKILL_NONE
game.thawed = False
game.skill = SKILL_NONE
- game.length = 0
if not scanner.inqueue: # Can start with command line options
proutn(_("Would you like a regular, tournament, or saved game? "))
scanner.next()
if not scanner.inqueue: # Can start with command line options
proutn(_("Would you like a regular, tournament, or saved game? "))
scanner.next()
@@
-5785,8
+5783,7
@@
def makemoves():
drawmaps(1)
while True: # get a command
hitme = False
drawmaps(1)
while True: # get a command
hitme = False
- game.justin = False
- game.optime = 0.0
+ game.optime = game.justin = False
scanner.chew()
setwnd(prompt_window)
clrscr()
scanner.chew()
setwnd(prompt_window)
clrscr()