*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1059 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-06-01 15:48:55 +00:00
parent e166318c5e
commit 20252c19fd
15 changed files with 90 additions and 50 deletions
+2 -4
View File
@@ -110,8 +110,6 @@ int weaponmove::lastsway = 0, weaponmove::swaymillis = 0;
VARP(hudgun,0,1,1);
char *hudgunnames[] = { "knife", "pistol", "shotgun", "subgun", "sniper", "assault", "grenade" };
void renderhudgun(int gun, int lastaction, int index = 0)
{
vec unitv;
@@ -120,7 +118,7 @@ void renderhudgun(int gun, int lastaction, int index = 0)
weaponmove wm;
if(!intermission) wm.calcmove(unitv, lastaction);
s_sprintfd(path)("weapons/%s", hudgunnames[gun]);
s_sprintfd(path)("weapons/%s", gunnames[gun]);
static int lastanim[2], lastswitch[2];
if(lastanim[index]!=(wm.anim|(gun<<16)))
{
@@ -148,7 +146,7 @@ void preload_hudguns()
{
loopi(NUMGUNS)
{
s_sprintfd(path)("weapons/%s", hudgunnames[i]);
s_sprintfd(path)("weapons/%s", gunnames[i]);
loadmodel(path);
}
}