diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index c5afcb93b..91385a105 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -2924,7 +2924,8 @@ void G_DisplayRest(int32_t smoothratio) if (g_player[myconnectindex].ps->newowner == -1 && ud.overhead_on == 0 && ud.crosshair && ud.camerasprite == -1) { - if (VM_OnEvent(EVENT_DISPLAYCROSSHAIR, g_player[screenpeek].ps->i, screenpeek, -1, 0) == 0) + a = VM_OnEvent(EVENT_DISPLAYCROSSHAIR, g_player[screenpeek].ps->i, screenpeek, -1, CROSSHAIR); + if (a >= 0) { int32_t x, y; #ifdef GEKKO @@ -2942,7 +2943,7 @@ void G_DisplayRest(int32_t smoothratio) } rotatesprite_win((x-(g_player[myconnectindex].ps->look_ang>>1))<<16,y<<16,scale(65536,ud.crosshairscale,100), - 0,CROSSHAIR,0,CROSSHAIR_PAL,2+1); + 0,a,0,CROSSHAIR_PAL,2+1); } } #if 0