From: Rudolf Polzer Date: Fri, 1 Oct 2010 05:52:05 +0000 (+0200) Subject: clientmodel: allow smoother scale (and more range, 1/256 to 256) X-Git-Tag: xonotic-v0.1.0preview~310^2 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=900eb72e1a12824870d1367ea1bef7778751dc5e clientmodel: allow smoother scale (and more range, 1/256 to 256) --- diff --git a/qcsrc/client/wall.qc b/qcsrc/client/wall.qc index 3aa140c6e8..7690c05f8d 100644 --- a/qcsrc/client/wall.qc +++ b/qcsrc/client/wall.qc @@ -79,7 +79,7 @@ void Ent_Wall() { self.modelindex = ReadShort(); self.solid = ReadByte(); - self.scale = ReadByte() / 16.0; + self.scale = ReadShort() / 256.0; if(f & 0x20) { self.mins_x = ReadCoord(); diff --git a/qcsrc/server/g_models.qc b/qcsrc/server/g_models.qc index 8a380484a2..0f0bba6e6d 100644 --- a/qcsrc/server/g_models.qc +++ b/qcsrc/server/g_models.qc @@ -88,7 +88,7 @@ float g_clientmodel_genericsendentity (entity to, float sf) { WriteShort(MSG_ENTITY, self.modelindex); WriteByte(MSG_ENTITY, self.solid); - WriteByte(MSG_ENTITY, floor(self.scale * 16)); + WriteShort(MSG_ENTITY, floor(self.scale * 256)); if(sf & 0x20) { WriteCoord(MSG_ENTITY, self.mins_x);