hudguns when spectating

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6286 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2011-04-18 15:34:16 +00:00
parent 518ececb37
commit af7e5e8c36
6 changed files with 59 additions and 41 deletions
+2 -1
View File
@@ -808,6 +808,7 @@ void cleanupgl()
int xtraverts;
VARP(hudgun, 0, 1, 1);
VARP(spechudgun, 0, 1, 1);
void setperspective(float fovy, float aspect, float nearplane, float farplane)
{
@@ -832,7 +833,7 @@ void drawhudgun(int w, int h, float aspect, int farplane)
{
sethudgunperspective(true);
if(hudgun && !player1->isspectating() && camera1->type==ENT_PLAYER)
if(hudgun && (spechudgun || !player1->isspectating()) && camera1->type==ENT_PLAYER)
{
playerent *p = (playerent *)camera1;
if(p->state==CS_ALIVE) p->weaponsel->renderhudmodel();