Add sniper mode option in ini.

This commit is contained in:
sorgelig
2020-05-02 15:12:19 +08:00
parent da693b0bc4
commit bd9ea67c63
4 changed files with 8 additions and 1 deletions

View File

@@ -3418,7 +3418,7 @@ int input_poll(int getchar)
int dx = mouse_emu_x;
int dy = mouse_emu_y;
if (mouse_sniper)
if (mouse_sniper ^ cfg.sniper_mode)
{
if (dx > 2) dx = 2;
if (dx < -2) dx = -2;