]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/viewloc.qc
Merge branch 'TimePath/modules'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / viewloc.qc
index fb510f8564ba50a59f63edaced5b89ed7a157197..7d6a3818e0ee8fd5024587e37107569a92db7306 100644 (file)
@@ -1,3 +1,4 @@
+#include "viewloc.qh"
 #include "util.qh"
 
 #if defined(CSQC)
@@ -64,13 +65,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';
@@ -136,9 +137,9 @@ void viewloc_SetViewLocation()
                }
 
 #if 0
-               LOG_TRACE(vtos(camera_position), "\n");
-               LOG_TRACE(vtos(old_camera_angle), "\n");
-               LOG_TRACE(vtos(camera_angle), "\n");
+               LOG_TRACE(vtos(camera_position));
+               LOG_TRACE(vtos(old_camera_angle));
+               LOG_TRACE(vtos(camera_angle));
 #endif
 
                freeze_org = getpropertyvec(VF_ORIGIN);