From c873eaccd3a79a09643d93176348c4dc3d467ee0 Mon Sep 17 00:00:00 2001 From: Ronald Reagan Date: Wed, 19 Dec 2012 01:02:41 +0000 Subject: [PATCH] cpistol warnings removed. Needs to be reverted when cpistol gets added in git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6988 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/hudgun.h | 1 + source/src/rendermodel.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/source/src/hudgun.h b/source/src/hudgun.h index 91bd7a19..c7275c6e 100644 --- a/source/src/hudgun.h +++ b/source/src/hudgun.h @@ -115,6 +115,7 @@ void preload_hudguns() { loopi(NUMGUNS) { + if (i==GUN_CPISTOL) continue; //RR 18/12/12 - Remove when cpistol is added. defformatstring(widn)("modmdlweap%d", i); defformatstring(path)("weapons/%s", identexists(widn)?getalias(widn):guns[i].modelname); loadmodel(path); diff --git a/source/src/rendermodel.cpp b/source/src/rendermodel.cpp index 43312743..286f25a7 100644 --- a/source/src/rendermodel.cpp +++ b/source/src/rendermodel.cpp @@ -499,6 +499,7 @@ void preload_playermodels() if(dynshadow && playermdl) playermdl->genshadows(8.0f, 4.0f); loopi(NUMGUNS) { + if (i==GUN_CPISTOL) continue; //RR 18/12/12 - Remove when cpistol is added. defformatstring(widn)("modmdlvwep%d", i); defformatstring(vwep)("weapons/%s/world", identexists(widn)?getalias(widn):guns[i].modelname); model *vwepmdl = loadmodel(vwep);