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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user