X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fviewloc.qc;h=92e739542eaa20b9642a665bbe8329928764fdaf;hb=b11ef2d3306ddecba0f55576922dd27801e10e03;hp=e5f90df089ebe2498a7a1f33b68fb7012796e16e;hpb=24151b08c3de08e46dace760129f0526a455be4b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/viewloc.qc b/qcsrc/common/viewloc.qc index e5f90df08..92e739542 100644 --- a/qcsrc/common/viewloc.qc +++ b/qcsrc/common/viewloc.qc @@ -1,12 +1,12 @@ #include "viewloc.qh" -#include "util.qh" #if defined(CSQC) - #include "../client/defs.qh" - #include "constants.qh" + #include + #include #elif defined(MENUQC) #elif defined(SVQC) - #include "../server/defs.qh" + #include + #include #endif // client movement @@ -19,7 +19,7 @@ void viewloc_PlayerPhysics(entity this) vector old_movement = PHYS_CS(this).movement; PHYS_CS(this).movement_x = old_movement_y; - if((this.viewloc.spawnflags & VIEWLOC_FREEMOVE) && !(time < this.ladder_time)) + if((this.viewloc.spawnflags & VIEWLOC_FREEMOVE) && !this.ladder_entity) PHYS_CS(this).movement_y = old_movement_x; else PHYS_CS(this).movement_y = 0; @@ -30,7 +30,7 @@ void viewloc_PlayerPhysics(entity this) vector forward = vectoangles(normalize(level_end - level_start)); vector backward = vectoangles(normalize(level_start - level_end)); - if((this.viewloc.spawnflags & VIEWLOC_FREEMOVE) && this.angles_y < 0 && !(time < this.ladder_time)) + if((this.viewloc.spawnflags & VIEWLOC_FREEMOVE) && this.angles_y < 0 && !this.ladder_entity) PHYS_CS(this).movement_y = -PHYS_CS(this).movement_y; if(this.viewloc.spawnflags & VIEWLOC_FREEAIM)