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 groundpiece_window.cxx,1.11,1.


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/editor groundpiece_window.cxx,1.11,1.12
Date: 30 Nov 2002 00:10:31 -0000

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

Modified Files:
        groundpiece_window.cxx 
Log Message:
- added some more options to the surfacebackground config dialog
- fixed bug with groundtype handling in the groundpiece dialog


Index: groundpiece_window.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/groundpiece_window.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- groundpiece_window.cxx      29 Nov 2002 00:17:05 -0000      1.11
+++ groundpiece_window.cxx      30 Nov 2002 00:10:29 -0000      1.12
@@ -21,6 +21,7 @@
 #include "editor.hxx"
 #include "object_manager.hxx"
 #include "groundpiece_window.hxx"
+#include "../worldobjsdata/groundpiece_data.hxx"
 #include "../editorobjs/groundpiece_obj.hxx"
 
 /************************
@@ -73,7 +74,7 @@
 void
 GroundpieceWindow::read_data ()
 {
-  switch (data->gptype)
+  switch (data->data->gptype)
     {
     case Groundtype::GP_SOLID:
       solid_radiobutton.set_checked(true);
@@ -99,16 +100,16 @@
   if (EditorObj::get_editor()->get_object_manager()->has_object(data))
     {
       if (ground_radiobutton.is_checked())
-       data->gptype = Groundtype::GP_GROUND;
+       data->data->gptype = Groundtype::GP_GROUND;
       else if (transparent_radiobutton.is_checked())
-       data->gptype = Groundtype::GP_TRANSPARENT;
+       data->data->gptype = Groundtype::GP_TRANSPARENT;
       else if (solid_radiobutton.is_checked())
-       data->gptype = Groundtype::GP_SOLID;
+       data->data->gptype = Groundtype::GP_SOLID;
       else if (bridge_radiobutton.is_checked())
-       data->gptype = Groundtype::GP_BRIDGE;
+       data->data->gptype = Groundtype::GP_BRIDGE;
       else
        {
-         std::cout << "Unhandled" << std::endl;
+         std::cout << "GroundpieceWindow: Unhandled groundtype" << std::endl;
        }
     }
   else





reply via email to

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