File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ cOverworld_description :: ~cOverworld_description( void )
58
58
59
59
void cOverworld_description :: Save( void )
60
60
{
61
- fs::path filename = pResource_Manager->Get_User_World_Directory () / m_path / utf8_to_path (" description.xml" );
61
+ fs::path filename = pResource_Manager->Get_User_World_Directory () / m_path. filename () / utf8_to_path (" description.xml" );
62
62
63
63
try {
64
64
Save_To_File (filename);
Original file line number Diff line number Diff line change @@ -75,6 +75,14 @@ cLayer_Line_Point :: ~cLayer_Line_Point( void )
75
75
}
76
76
}
77
77
78
+ xmlpp::Element* cLayer_Line_Point :: Save_To_XML_Node(xmlpp::Element* p_element)
79
+ {
80
+ // Do NOT call parent class’ method as we are no real sprite.
81
+ // We are being saved into the world description file, so no
82
+ // need to duplicate nonsensical entries in world.xml.
83
+ return NULL ;
84
+ }
85
+
78
86
void cLayer_Line_Point :: Draw( cSurface_Request *request /* = NULL */ )
79
87
{
80
88
if ( m_auto_destroy || !pOverworld_Manager->m_draw_layer )
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ class cLayer_Line_Point : public cSprite
36
36
// destructor
37
37
virtual ~cLayer_Line_Point ( void );
38
38
39
+ virtual xmlpp::Element* Save_To_XML_Node (xmlpp::Element* p_element);
40
+
39
41
// draw
40
42
virtual void Draw ( cSurface_Request *request = NULL );
41
43
You can’t perform that action at this time.
0 commit comments