*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1541 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ menuitem "Rabid Viper Special Forces" "team RVSF" "chmenumdl team playermodels/
|
||||
|
||||
alias gencrosshairs [
|
||||
loop i (listlen $arg1) [
|
||||
alias label (at $arg1 i)
|
||||
alias label (at $arg1 $i)
|
||||
menuitem $label (concat loadcrosshair $label)
|
||||
]
|
||||
]
|
||||
|
||||
@@ -530,6 +530,7 @@ void startmap(const char *name) // called just after a map load
|
||||
s_strcpy(clientmap, name);
|
||||
if(editmode) toggleedit();
|
||||
setvar("gamespeed", 100);
|
||||
setvar("paused", 0);
|
||||
setvar("fog", 180);
|
||||
setvar("fogcolour", 0x8099B3);
|
||||
showscores(false);
|
||||
|
||||
+10
-4
@@ -209,6 +209,7 @@ void keyrepeat(bool on)
|
||||
}
|
||||
|
||||
VARF(gamespeed, 10, 100, 1000, if(multiplayer()) gamespeed = 100);
|
||||
VARF(paused, 0, 0, 1, if(multiplayer()) paused = 0);
|
||||
|
||||
bool firstrun = false;
|
||||
static int clockrealbase = 0, clockvirtbase = 0;
|
||||
@@ -456,10 +457,15 @@ int main(int argc, char **argv)
|
||||
if(millis<totalmillis) millis = totalmillis;
|
||||
limitfps(millis, totalmillis);
|
||||
int elapsed = millis-totalmillis;
|
||||
curtime = elapsed*gamespeed/100;
|
||||
//if(curtime>200) curtime = 200;
|
||||
//else if(curtime<1) curtime = 1;
|
||||
|
||||
if(multiplayer(false)) curtime = elapsed;
|
||||
else
|
||||
{
|
||||
static int timeerr = 0;
|
||||
int scaledtime = elapsed*gamespeed + timeerr;
|
||||
curtime = scaledtime/100;
|
||||
timeerr = scaledtime%100;
|
||||
if(paused) curtime = 0;
|
||||
}
|
||||
cleardlights();
|
||||
|
||||
if(lastmillis) updateworld(curtime, lastmillis);
|
||||
|
||||
Reference in New Issue
Block a user