]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/effects/qc/casings.qc
Save a byte on each casing message by omitting roll angle
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / effects / qc / casings.qc
index 4f91acf914cc1cad9340fe6da73cf640270a61eb..0e851da7f79809e6eec5a03de2f48fcd53701c25 100644 (file)
@@ -45,7 +45,7 @@ void SpawnCasing(vector vel, float randomvel, vector ang, vector avel, float ran
                WriteShort(MSG_ONE, compressShortVector(vel)); // actually compressed velocity
                WriteByte(MSG_ONE, ang.x * 256 / 360);
                WriteByte(MSG_ONE, ang.y * 256 / 360);
-               WriteByte(MSG_ONE, ang.z * 256 / 360);
+               // weapons only have pitch and yaw, so no need to send ang.z
        });
 }
 #endif
@@ -150,7 +150,6 @@ NET_HANDLE(casings, bool isNew)
     casing.velocity = decompressShortVector(ReadShort());
     casing.angles_x = ReadByte() * 360 / 256;
     casing.angles_y = ReadByte() * 360 / 256;
-    casing.angles_z = ReadByte() * 360 / 256;
 
     return = true;