diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-12 14:02:43 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-01-12 14:02:43 +0000 |
| commit | 3f945bc163f5c06053ea77c898a64a8c51246fe9 (patch) | |
| tree | 1eba57a43c5cbaadd3099cee5b1cafa3bedcb94d | |
| parent | 47a0525ab8f99180e1d7a1a74fb6ca620c08f7b5 (diff) | |
| download | zcatch-3f945bc163f5c06053ea77c898a64a8c51246fe9.tar.gz zcatch-3f945bc163f5c06053ea77c898a64a8c51246fe9.zip | |
fixed brush placement error
| -rw-r--r-- | src/editor/editor.hpp | 15 |
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; -}*/ +} |