mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
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:
parent
00cb9caa2c
commit
acbfa9ad05
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
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);
|
a = VM_OnEvent(EVENT_DISPLAYCROSSHAIR, g_player[screenpeek].ps->i, screenpeek, -1, 0);
|
||||||
if (a >= 0)
|
if (a == 0 || a > 1)
|
||||||
{
|
{
|
||||||
int32_t x, y;
|
int32_t x, y;
|
||||||
|
|
||||||
|
if (a == 0)
|
||||||
|
a = CROSSHAIR;
|
||||||
|
|
||||||
#ifdef GEKKO
|
#ifdef GEKKO
|
||||||
readmouseabsxy(&x, &y);
|
readmouseabsxy(&x, &y);
|
||||||
if (x || y)
|
if (x || y)
|
||||||
|
|
Loading…
Reference in a new issue