From: Samual Lenks Date: Sat, 28 Dec 2013 18:23:20 +0000 (-0500) Subject: Fix spectating X-Git-Tag: xonotic-v0.8.0~248^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b9c20486ab111d77bd71bead3c648a75964f9de;p=xonotic%2Fxonotic-data.pk3dir.git Fix spectating --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 1fe828bd2..48686658e 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -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));