From c1db4356f7dfaed32fbcc0e27e9b7ff00a541b3e Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 25 Jan 2012 04:11:27 +0000 Subject: [PATCH] try to fix a clientonly-with-csqc build issue. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3962 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_move.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/server/sv_move.c b/engine/server/sv_move.c index 32a80c29a..bb1bbfa95 100644 --- a/engine/server/sv_move.c +++ b/engine/server/sv_move.c @@ -123,7 +123,9 @@ qboolean World_movestep (world_t *world, wedict_t *ent, vec3_t move, qboolean re wedict_t *enemy = world->edicts; int eflags = ent->v->flags; - if (progstype != PROG_H2) +#ifndef CLIENTONLY + if (progstype != PROG_H2 || world != &sv.world) +#endif eflags &= ~FLH2_NOZ|FLH2_HUNTFACE; // try the move @@ -131,7 +133,7 @@ qboolean World_movestep (world_t *world, wedict_t *ent, vec3_t move, qboolean re VectorAdd (ent->v->origin, move, neworg); // flying monsters don't step up - if ( eflags & (FL_SWIM | FL_FLY) && !(eflags & (FLH2_NOZ|FLH2_HUNTFACE))) + if ((eflags & (FL_SWIM | FL_FLY)) && !(eflags & (FLH2_NOZ|FLH2_HUNTFACE))) { // try one move with vertical motion, then one without for (i=0 ; i<2 ; i++)