[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.37,1.38
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.37,1.38 |
Date: |
9 Oct 2002 14:35:57 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv5942
Modified Files:
editor.cxx
Log Message:
fixed 658 - moving objects in the editor with non-100% zooming causes position
incorrectness
Index: editor.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editor.cxx,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- editor.cxx 4 Oct 2002 11:38:29 -0000 1.37
+++ editor.cxx 9 Oct 2002 14:35:55 -0000 1.38
@@ -451,6 +451,10 @@
while (CL_Mouse::left_pressed())
{
Vector new_pos (view->screen_to_world(Vector(CL_Mouse::get_x(),
CL_Mouse::get_y())));
+
+ new_pos.x = int(new_pos.x);
+ new_pos.y = int(new_pos.y);
+
selection->move(new_pos.x - old_pos.x, new_pos.y - old_pos.y);
old_pos = new_pos;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.37,1.38,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus pingus.dsp,1.18,1.19
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor selection.cxx,1.15,1.16 selection.hxx,1.12,1.13
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus pingus.dsp,1.18,1.19
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor selection.cxx,1.15,1.16 selection.hxx,1.12,1.13
- Index(es):