Fix disabling EVENT_DISPLAYCROSSHAIR by setting RETURN to 1. SECTOREFFECTOR is not a useful crosshair.

git-svn-id: https://svn.eduke32.com/eduke32@2803 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2012-07-05 17:55:15 +00:00
parent 00cb9caa2c
commit acbfa9ad05

View file

@ -2839,10 +2839,14 @@ void G_DisplayRest(int32_t smoothratio)
if (g_player[myconnectindex].ps->newowner == -1 && ud.overhead_on == 0 && ud.crosshair && ud.camerasprite == -1)
{
a = VM_OnEvent(EVENT_DISPLAYCROSSHAIR, g_player[screenpeek].ps->i, screenpeek, -1, CROSSHAIR);
if (a >= 0)
a = VM_OnEvent(EVENT_DISPLAYCROSSHAIR, g_player[screenpeek].ps->i, screenpeek, -1, 0);
if (a == 0 || a > 1)
{
int32_t x, y;
if (a == 0)
a = CROSSHAIR;
#ifdef GEKKO
readmouseabsxy(&x, &y);
if (x || y)