git.shiar.nl
/
netris.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf847a2
)
comment speed calculation
author
Mischa POSLAWSKY
<netris@shiar.org>
Sat, 10 Mar 2007 20:22:55 +0000
(21:22 +0100)
committer
Mischa POSLAWSKY
<netris@shiar.org>
Sat, 10 Mar 2007 20:22:55 +0000
(21:22 +0100)
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index 648db94190113958c580c88c4276f0daa8291215..38386213551e383e28570f7e3e89199e1c953902 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-252,11
+252,14
@@
static void game_reset(void)
lastadd = me;
SRandom(Game.seed);
+
+ // speed = MAX(initspeed / SPEEDINC ** (level - 1), SPEEDMINIMUM)
Game.speed = Game.initspeed;
for (i = 1; i < Players[me].score.level; i++)
Game.speed /= SPEEDINC;
if (Game.speed < SPEEDMINIMUM)
Game.speed = SPEEDMINIMUM;
+
ResetBaseTime(); //reset timer
SetITimer(Game.speed, Game.speed);
Players[me].nextShape = ChooseOption(stdOptions);