X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fviewloc.qc;h=55e37c4d9271d0c2699aeff577d8262aedf4e21f;hb=2e60d4af0278db5d39618bf8fee353c220d90486;hp=f2dab7bfd22cd7c8620f3b69e7c10d9f37ece242;hpb=1e0dbeb759a0189ef6938a3193ec60a6a8ca6434;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/viewloc.qc b/qcsrc/common/viewloc.qc index f2dab7bfd..55e37c4d9 100644 --- a/qcsrc/common/viewloc.qc +++ b/qcsrc/common/viewloc.qc @@ -48,7 +48,7 @@ void viewloc_PlayerPhysics(entity this) if(PHYS_CS(this).movement_x > 0) // right this.angles_y = forward.y; } - + #if 0 //if(!PHYS_INPUT_BUTTON_CROUCH(this) && !IS_DUCKED(this)) if(!(this.viewloc.spawnflags & VIEWLOC_FREEMOVE)) { @@ -65,6 +65,7 @@ void viewloc_PlayerPhysics(entity this) //else { input_buttons &= ~16; this.flags &= ~FL_DUCKED; } #endif } + #endif } } @@ -76,10 +77,12 @@ void viewloc_SetTags(entity this) this.viewloc = NULL; if(this.viewloc.entnum != this.tag_networkviewloc) - if(this.tag_networkviewloc == 0) - this.viewloc = NULL; - else - this.viewloc = findfloat(NULL, entnum, this.tag_networkviewloc); + { + if(this.tag_networkviewloc == 0) + this.viewloc = NULL; + else + this.viewloc = findfloat(NULL, entnum, this.tag_networkviewloc); + } } vector CursorToWorldCoord(vector mpos)