aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/scripts/client/cursorposition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/scripts/client/cursorposition.cpp')
-rw-r--r--NorthstarDLL/scripts/client/cursorposition.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/NorthstarDLL/scripts/client/cursorposition.cpp b/NorthstarDLL/scripts/client/cursorposition.cpp
index c0e8623c..c1f0c4c2 100644
--- a/NorthstarDLL/scripts/client/cursorposition.cpp
+++ b/NorthstarDLL/scripts/client/cursorposition.cpp
@@ -11,10 +11,10 @@ ADD_SQFUNC("vector ornull", NSGetCursorPosition, "", "", ScriptContext::UI)
return SQRESULT_NULL;
g_pSquirrel<context>->pushvector(
- sqvm,
- {p.x > 0 ? p.x > rcClient.right ? rcClient.right : (float)p.x : 0,
- p.y > 0 ? p.y > rcClient.bottom ? rcClient.bottom : (float)p.y : 0,
- 0});
+ sqvm,
+ {p.x > 0 ? p.x > rcClient.right ? rcClient.right : (float)p.x : 0,
+ p.y > 0 ? p.y > rcClient.bottom ? rcClient.bottom : (float)p.y : 0,
+ 0});
return SQRESULT_NOTNULL;
}
g_pSquirrel<context>->raiseerror(sqvm, "Failed retrieving cursor position of game window");