diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-12-11 11:24:09 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-12-11 11:24:09 +0000 |
commit | e6358d790aa66b2c93584185158e7466f3ec166f (patch) | |
tree | 89e9715f0a9435f9b917fb6b5677ded4f9fbaebc /source/cl_view.c | |
parent | 8ef839c6d9b8204322aa04f4229fdf98a5323a46 (diff) |
Fixed crash inside CL_PacketEntities on player ents with negative skinnum.
Register all vwep models even with `cl_noskins 1'.
Fixed S_RegisterSexedSound to always use sounds corresponding to
visible player model.
Diffstat (limited to 'source/cl_view.c')
-rw-r--r-- | source/cl_view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cl_view.c b/source/cl_view.c index 9ecf1e6..130347b 100644 --- a/source/cl_view.c +++ b/source/cl_view.c @@ -288,7 +288,7 @@ void CL_PrepRefresh (void) } if (name[0] == '#') { // special player weapon model - if (cl.numWeaponModels < MAX_CLIENTWEAPONMODELS) { + if (cl.numWeaponModels < MAX_CLIENTWEAPONMODELS && cl_vwep->integer) { strcpy( cl.weaponModels[cl.numWeaponModels++], name + 1 ); } } else { |