bot menu fixed

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@405 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-09-17 20:21:16 +00:00
parent 96a3a4a298
commit ed6feb0c1d
15 changed files with 44 additions and 54 deletions
+4 -2
View File
@@ -398,6 +398,8 @@ struct weaponmove
vec pos;
int anim;
weaponmove() : k_rot(0), kick(0), anim(0) { pos.x = pos.y = pos.z = 0.0f; };
calcmove(vec base, int basetime)
{
bool akimbo = player1->akimbo && player1->gunselect==GUN_PISTOL;
@@ -498,8 +500,8 @@ void rendergun(md3model *weapon, int lastaction)
vdist(dist, unitv, player1->o, worldpos);
vdiv(unitv, dist);
weaponmove wm;
wm.calcmove(unitv, lastaction);
weaponmove wm;
if(!intermission) wm.calcmove(unitv, lastaction);
weapon->setanim(wm.anim);
weapon->draw(wm.pos.x, wm.pos.z, wm.pos.y, player1->yaw + 90, player1->pitch+wm.k_rot, 1.0f, light);
};