]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix spectating
authorSamual Lenks <samual@xonotic.org>
Sat, 28 Dec 2013 18:23:20 +0000 (13:23 -0500)
committerSamual Lenks <samual@xonotic.org>
Sat, 28 Dec 2013 18:23:20 +0000 (13:23 -0500)
qcsrc/client/View.qc

index 1fe828bd22af4b3d729dc017a66e3ccf4d29d26d..48686658e066814f014d2cd409f26c229b17c8f6 100644 (file)
@@ -307,7 +307,7 @@ float TrueAimCheck()
                        break;
        }
 
-       vector traceorigin = getplayerorigin(player_localnum) + (eZ * getstati(STAT_VIEWHEIGHT));
+       vector traceorigin = getplayerorigin(player_localentnum-1) + (eZ * getstati(STAT_VIEWHEIGHT));
 
        vecs = decompressShotOrigin(getstati(STAT_SHOTORG));