From d3850ba1a36b1768948f9801f53e97b24d18828f Mon Sep 17 00:00:00 2001 From: tankefugl Date: Thu, 23 Jun 2005 15:22:27 +0000 Subject: [PATCH] Mantis 0000733: o Fixed bug where all players on the map would face easward if outside the viewing player's PVS The angles divided by 22.5 on write were not multiplied back upon read, resulting in really low angles -- almost not visible. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@209 67975925-1194-0748-b3d5-c16f83f1a3a1 --- main/source/mod/AvHNetworkMessages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/source/mod/AvHNetworkMessages.cpp b/main/source/mod/AvHNetworkMessages.cpp index 5bb5e66..ef14bc6 100644 --- a/main/source/mod/AvHNetworkMessages.cpp +++ b/main/source/mod/AvHNetworkMessages.cpp @@ -1986,7 +1986,7 @@ const int kEntHierFlagDeletion = 0x02; { index = short_data & kPlayerIndexMask; short_data >>= kNumPlayerIndexBits; - ent.mAngle = short_data & kAngleMask; + ent.mAngle = (short_data & kAngleMask) * 22.5f; short_data >>= kNumAngleBits; ent.mSquadNumber = short_data & kSquadMask; }