cleanups
This commit is contained in:
parent
a2b22a332a
commit
339f44d6a1
|
@ -1280,8 +1280,8 @@ static int luaB_mouse_pos(lua_State *L) {
|
||||||
int y = luaL_optnumber(L, 2, -1);
|
int y = luaL_optnumber(L, 2, -1);
|
||||||
float v = game_theme.scale;
|
float v = game_theme.scale;
|
||||||
if (x != -1 && y != -1) {
|
if (x != -1 && y != -1) {
|
||||||
x = x * v;
|
x *= v;
|
||||||
y = y * v;
|
y *= v;
|
||||||
gfx_warp_cursor(x, y);
|
gfx_warp_cursor(x, y);
|
||||||
x = -1;
|
x = -1;
|
||||||
y = -1;
|
y = -1;
|
||||||
|
|
Loading…
Reference in a new issue