move SV_SetMoveVars

This commit is contained in:
Bill Currie 2002-02-26 07:32:23 +00:00
parent 8eba01b3d3
commit 5d3830eeb1
2 changed files with 16 additions and 15 deletions

View file

@ -47,6 +47,7 @@ static const char rcsid[] =
#include "compat.h"
#include "crudefile.h"
#include "pmove.h"
#include "server.h"
#include "sv_progs.h"
#include "world.h"
@ -425,3 +426,18 @@ SV_SpawnServer (const char *server)
Info_SetValueForKey (svs.info, "map", sv.name, !sv_highchars->int_val);
Con_DPrintf ("Server spawned.\n");
}
void
SV_SetMoveVars (void)
{
movevars.gravity = sv_gravity->value;
movevars.stopspeed = sv_stopspeed->value;
movevars.maxspeed = sv_maxspeed->value;
movevars.spectatormaxspeed = sv_spectatormaxspeed->value;
movevars.accelerate = sv_accelerate->value;
movevars.airaccelerate = sv_airaccelerate->value;
movevars.wateraccelerate = sv_wateraccelerate->value;
movevars.friction = sv_friction->value;
movevars.waterfriction = sv_waterfriction->value;
movevars.entgravity = 1.0;
}

View file

@ -832,18 +832,3 @@ SV_Physics (void)
PR_ExecuteProgram (&sv_pr_state, EndFrame);
}
}
void
SV_SetMoveVars (void)
{
movevars.gravity = sv_gravity->value;
movevars.stopspeed = sv_stopspeed->value;
movevars.maxspeed = sv_maxspeed->value;
movevars.spectatormaxspeed = sv_spectatormaxspeed->value;
movevars.accelerate = sv_accelerate->value;
movevars.airaccelerate = sv_airaccelerate->value;
movevars.wateraccelerate = sv_wateraccelerate->value;
movevars.friction = sv_friction->value;
movevars.waterfriction = sv_waterfriction->value;
movevars.entgravity = 1.0;
}