]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Properly network scale
authorMario <mario.mario@y7mail.com>
Tue, 1 Oct 2013 11:10:58 +0000 (04:10 -0700)
committerMario <mario.mario@y7mail.com>
Tue, 1 Oct 2013 11:10:58 +0000 (04:10 -0700)
qcsrc/common/csqcmodel_settings.qh

index c79ff007dc6da48b11b3e68ac7cb8771bed7fcbb..3c4ca494d1dddf90a7f9b806a4f7c46179f91fff 100644 (file)
@@ -48,8 +48,8 @@
        CSQCMODEL_ENDIF \
        CSQCMODEL_IF(!isplayer) \
                CSQCMODEL_PROPERTY(2048, float, ReadByte, WriteByte, monsterid) \
-               CSQCMODEL_PROPERTY(4096, float, ReadByte, WriteByte, scale) \
-       CSQCMODEL_ENDIF
+       CSQCMODEL_ENDIF \
+       CSQCMODEL_PROPERTY_SCALED(4096, float, ReadByte, WriteByte, scale, 254, -1, 254)
 // TODO get rid of colormod/glowmod here, find good solution for nex charge glowmod hack; also get rid of some useless properties on non-players that only exist for CopyBody
 
 // add hook function calls here