X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fviewloc.qc;h=23b30792229f7e1e02f2720461e6fabb2720e644;hb=0d4395ecbae201842dcaba523da9017a78e922f8;hp=fb510f8564ba50a59f63edaced5b89ed7a157197;hpb=e0e847a336cdb7ab1fcb93d3cf3e1402b761a726;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/viewloc.qc b/qcsrc/common/viewloc.qc index fb510f856..23b307922 100644 --- a/qcsrc/common/viewloc.qc +++ b/qcsrc/common/viewloc.qc @@ -64,13 +64,13 @@ void viewloc_PlayerPhysics(entity this) void viewloc_SetTags(entity this) { if(this.viewloc && wasfreed(this.viewloc)) - this.viewloc = world; + this.viewloc = NULL; if(this.viewloc.entnum != this.tag_networkviewloc) if(this.tag_networkviewloc == 0) - this.viewloc = world; + this.viewloc = NULL; else - this.viewloc = findfloat(world, entnum, this.tag_networkviewloc); + this.viewloc = findfloat(NULL, entnum, this.tag_networkviewloc); } vector old_camera_angle = '0 0 0';