[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/backgrounds starfield_background.hxx,
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/backgrounds starfield_background.hxx,1.8,1.9 surface_background_data.hxx,1.9,1.10 thunderstorm_background_data.hxx,1.8,1.9 |
Date: |
10 Sep 2002 14:33:09 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/backgrounds
In directory dark:/tmp/cvs-serv25283/backgrounds
Modified Files:
starfield_background.hxx surface_background_data.hxx
thunderstorm_background_data.hxx
Log Message:
well, not a nice fix for the SpriteObj reference problem, but a working one.
a better solution might be to sync the position data of spriteobj and the
editorobj on a write call, since its not needed before
Index: starfield_background.hxx
===================================================================
RCS file:
/usr/local/cvsroot/Games/Pingus/src/backgrounds/starfield_background.hxx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- starfield_background.hxx 6 Sep 2002 17:33:29 -0000 1.8
+++ starfield_background.hxx 10 Sep 2002 14:33:07 -0000 1.9
@@ -113,9 +113,11 @@
public:
EditorStarfieldBackground (const StarfieldBackgroundData& data)
: StarfieldBackgroundData (data),
- SpriteEditorObj ("Stars/starfield_icon", "game", pos),
+ SpriteEditorObj ("Stars/starfield_icon", "game"),
pos (-64.0f, 0.0f)
- {}
+ {
+ pos_ref = &pos;
+ }
void write_xml(std::ostream& xml) { this->StarfieldBackgroundData::write_xml
(xml); }
Index: surface_background_data.hxx
===================================================================
RCS file:
/usr/local/cvsroot/Games/Pingus/src/backgrounds/surface_background_data.hxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- surface_background_data.hxx 6 Sep 2002 17:33:29 -0000 1.9
+++ surface_background_data.hxx 10 Sep 2002 14:33:07 -0000 1.10
@@ -92,9 +92,8 @@
public:
EditorSurfaceBackground (const SurfaceBackgroundData& data)
: SurfaceBackgroundData (data),
- SpriteEditorObj (desc.res_name, desc.datafile, pos)
- {
-
+ SpriteEditorObj (desc.res_name, desc.datafile, &pos)
+ {
}
void write_xml(std::ostream& xml) { this->SurfaceBackgroundData::write_xml
(xml); }
Index: thunderstorm_background_data.hxx
===================================================================
RCS file:
/usr/local/cvsroot/Games/Pingus/src/backgrounds/thunderstorm_background_data.hxx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- thunderstorm_background_data.hxx 6 Sep 2002 17:33:29 -0000 1.8
+++ thunderstorm_background_data.hxx 10 Sep 2002 14:33:07 -0000 1.9
@@ -57,7 +57,7 @@
public:
EditorThunderstormBackground (const ThunderstormBackgroundData& data)
: ThunderstormBackgroundData (data),
- SpriteEditorObj ("Stars/starfield_icon", "game", pos)
+ SpriteEditorObj ("Stars/starfield_icon", "game", &pos)
{
pos = CL_Vector(-128.0f, 0.0f);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/backgrounds starfield_background.hxx,1.8,1.9 surface_background_data.hxx,1.9,1.10 thunderstorm_background_data.hxx,1.8,1.9,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editorobjs bumper_obj.cxx,1.4,1.5 fake_exit_obj.cxx,1.5,1.6 guillotine_obj.cxx,1.4,1.5 hammer_obj.cxx,1.4,1.5 laser_exit_obj.cxx,1.4,1.5 smasher_obj.cxx,1.4,1.5 smasher_obj.hxx,1.3,1.4 spike_obj.cxx,1.4,1.5 teleporter_obj.cxx,1.2,1.3 teleporter_target_obj.cxx,1.1,1.2
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor_groundpiece_obj.cxx,1.10,1.11 plfobj.cxx,1.10,1.11 sprite_editorobj.cxx,1.4,1.5 sprite_editorobj.hxx,1.4,1.5 start_pos.cxx,1.5,1.6 weather_obj.cxx,1.6,1.7
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editorobjs bumper_obj.cxx,1.4,1.5 fake_exit_obj.cxx,1.5,1.6 guillotine_obj.cxx,1.4,1.5 hammer_obj.cxx,1.4,1.5 laser_exit_obj.cxx,1.4,1.5 smasher_obj.cxx,1.4,1.5 smasher_obj.hxx,1.3,1.4 spike_obj.cxx,1.4,1.5 teleporter_obj.cxx,1.2,1.3 teleporter_target_obj.cxx,1.1,1.2
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor_groundpiece_obj.cxx,1.10,1.11 plfobj.cxx,1.10,1.11 sprite_editorobj.cxx,1.4,1.5 sprite_editorobj.hxx,1.4,1.5 start_pos.cxx,1.5,1.6 weather_obj.cxx,1.6,1.7
- Index(es):