Skip to content
This repository has been archived by the owner on Jan 11, 2025. It is now read-only.

Commit

Permalink
Remove test levels; fix some serious bug
Browse files Browse the repository at this point in the history
  • Loading branch information
acmepjz committed Apr 25, 2011
1 parent 1af76f4 commit 679f456
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions data/level/levellist.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
leveledit.map
leveledit2.map
test2.map
BabySteps.map
ShadowBlocks.map
LittleHelp.map
Expand Down
2 changes: 2 additions & 0 deletions src/GUIObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
**
****************************************************************************/
#include "GUIObject.h"
#include <iostream>
using namespace std;

GUIObject *GUIObjectRoot=NULL;

Expand Down
3 changes: 2 additions & 1 deletion src/GUIObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ class GUIObject{
const char* Caption=NULL,int Value=0,
bool Enabled=true,bool Visible=true):
Left(Left),Top(Top),Width(Width),Height(Height),
Type(Type),Value(Value),EventCallback(NULL),State(0)
Type(Type),Value(Value),EventCallback(NULL),State(0),
Enabled(Enabled),Visible(Visible)
{
if(Caption) GUIObject::Caption=Caption;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void Game::load_level(string FileName)
}else{
s=FileName;
}
if(!objSerializer.LoadNodeFromFile(FileName.c_str(),&obj,true)) return;
if(!objSerializer.LoadNodeFromFile(s.c_str(),&obj,true)) return;
}

Destroy();
Expand Down

0 comments on commit 679f456

Please sign in to comment.