about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-01-12 14:02:43 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-01-12 14:02:43 +0000
commit3f945bc163f5c06053ea77c898a64a8c51246fe9 (patch)
tree1eba57a43c5cbaadd3099cee5b1cafa3bedcb94d /src
parent47a0525ab8f99180e1d7a1a74fb6ca620c08f7b5 (diff)
downloadzcatch-3f945bc163f5c06053ea77c898a64a8c51246fe9.tar.gz
zcatch-3f945bc163f5c06053ea77c898a64a8c51246fe9.zip
fixed brush placement error
Diffstat (limited to 'src')
-rw-r--r--src/editor/editor.hpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/editor/editor.hpp b/src/editor/editor.hpp
index 8630cc0c..fb2b2368 100644
--- a/src/editor/editor.hpp
+++ b/src/editor/editor.hpp
@@ -562,20 +562,7 @@ inline void mapscreen_to_world(float center_x, float center_y, float parallax_x,
 	width *= zoom;
 	height *= zoom;
 	points[0] = offset_x+center_x-width/2;
-	points[1] = offset_x+center_y-height/2;
-	points[2] = offset_x+center_x+width/2;
-	points[3] = offset_x+center_y+height/2;
-}
-/*
-inline void mapscreen_to_world(float center_x, float center_y, float parallax_x, float parallax_y,
-	float offset_x, float offset_y, float aspect, float zoom, float *points)
-{
-	float width = 300*3*zoom*aspect;
-	float height = 300*3*zoom;
-	center_x *= parallax_x;
-	center_y *= parallax_y;
-	points[0] = offset_x+center_x-width/2;
 	points[1] = offset_y+center_y-height/2;
 	points[2] = offset_x+center_x+width/2;
 	points[3] = offset_y+center_y+height/2;
-}*/
+}