Skip to content
Permalink
Browse files

cgame: fixed shoutcaster can't differentiate spotted landmines, refs #…

  • Loading branch information
rmarquis committed Mar 24, 2020
1 parent bf639e6 commit cb5d843d62241ee674a47bbf28abcc01ae78dc11
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/cgame/cg_ents.c
@@ -1291,7 +1291,16 @@ static void CG_Missile(centity_t *cent)
}
else if (cgs.clientinfo[cg.clientNum].shoutcaster)
{
CG_DrawLandmine(cent, &ent);
if (cent->currentState.modelindex2)
{
// team or spotted landmine
CG_DrawMineMarkerFlag(cent, &ent, weapon);
}
else
{
// unspotted landmine
CG_DrawLandmine(cent, &ent);
}
}
else if (!cent->currentState.modelindex2)
{
@@ -1323,7 +1332,7 @@ static void CG_Missile(centity_t *cent)
{
if (cgs.clientinfo[cg.clientNum].shoutcaster)
{
// shoutcasters can see landmines
// shoutcasters can see team landmines
CG_DrawMineMarkerFlag(cent, &ent, weapon);
}
else

0 comments on commit cb5d843

Please sign in to comment.
You can’t perform that action at this time.