mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
Finish the "merge" of V_CalcBob.
qw now uses cl.onground instead of pmove's onground (d'oh). nq now has a dummy spectator flag.
This commit is contained in:
parent
84b5869b30
commit
c8e3cf05d0
3 changed files with 9 additions and 2 deletions
|
@ -227,6 +227,8 @@ typedef struct {
|
|||
// frag scoreboard
|
||||
scoreboard_t *scores; // [cl.maxclients]
|
||||
|
||||
int spectator;
|
||||
|
||||
int sv_cshifts;
|
||||
int chase;
|
||||
int fpd;
|
||||
|
|
|
@ -114,6 +114,12 @@ V_CalcBob (void)
|
|||
static double bobtime;
|
||||
static float bob;
|
||||
|
||||
if (cl.spectator)
|
||||
return 0;
|
||||
|
||||
if (cl.onground == -1)
|
||||
return bob; // just use old value
|
||||
|
||||
bobtime += host_frametime;
|
||||
cycle = bobtime - (int) (bobtime / cl_bobcycle->value) *
|
||||
cl_bobcycle->value;
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
#include "client.h"
|
||||
#include "compat.h"
|
||||
#include "host.h"
|
||||
#include "qw/pmove.h"
|
||||
#include "clview.h"
|
||||
|
||||
/*
|
||||
|
@ -123,7 +122,7 @@ V_CalcBob (void)
|
|||
if (cl.spectator)
|
||||
return 0;
|
||||
|
||||
if (onground == -1)
|
||||
if (cl.onground == -1)
|
||||
return bob; // just use old value
|
||||
|
||||
bobtime += host_frametime;
|
||||
|
|
Loading…
Reference in a new issue