pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.3,1.4 editorobj_g


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.3,1.4 editorobj_group.hxx,1.2,1.3
Date: 19 Jun 2002 15:19:29 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv18271/editor

Modified Files:
        editor.cxx editorobj_group.hxx 
Log Message:
- Initialized some unitialized members
- moved some initializations from body to initlist

This fixes the bug that the level end is not recognized and maybe some bugs
in the actions too


Index: editor.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editor.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- editor.cxx  18 Jun 2002 10:04:11 -0000      1.3
+++ editor.cxx  19 Jun 2002 15:19:26 -0000      1.4
@@ -55,14 +55,9 @@
   return instance_; 
 }
 
-Editor::Editor ()
+Editor::Editor () : event_handler_ref_counter(0), show_help_screen(true),
+                    move_x(0), move_y(0), tool(SELECTOR_TOOL)
 {
-  show_help_screen = true;
-  move_x = 0;
-  move_y = 0;
-  event_handler_ref_counter = 0;
-  tool = SELECTOR_TOOL;
-
   EditorObj::set_editor(this);
 
   event      = new EditorEvent;

Index: editorobj_group.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editorobj_group.hxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- editorobj_group.hxx 13 Jun 2002 19:53:22 -0000      1.2
+++ editorobj_group.hxx 19 Jun 2002 15:19:26 -0000      1.3
@@ -31,8 +31,8 @@
   std::list<boost::shared_ptr<EditorObj> > objs;
   
   CL_Vector upper_left_corner;
-  int width, height;
-  bool init;
+  //int width, height;
+  //bool init;
 public:
   EditorObjGroup();
   virtual ~EditorObjGroup();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]