summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-06-24 20:54:59 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-25 14:52:52 (GMT)
commitc18009dd9c87343178e808565d815b454bd2b585 (patch)
tree0802e521b44b7adecbe38518a343a9df882ebc20 /src/main.c
parent36e2a07a5b5e0eb07bd9fcea48004dd8b5890322 (diff)
downloadpowder-c18009dd9c87343178e808565d815b454bd2b585.zip
powder-c18009dd9c87343178e808565d815b454bd2b585.tar.gz
Check particle exists in tpt.set_property, and sdl_scale mouse coords for Lua step
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 535c4f1..7c1d372 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2508,7 +2508,7 @@ int main(int argc, char *argv[])
b = SDL_GetMouseState(&x, &y); // b is current mouse state
#ifdef LUACONSOLE
- if(luacon_step(x, y, b, bq, sdl_key))
+ if(luacon_step(x/sdl_scale, y/sdl_scale, b, bq, sdl_key))
b = 0; //Mouse click was handled by Lua step
#endif