Erwan
- Updated Parser mechanism. Right now this doesn't change functionalities much, but should be more readable, and make it easier to code some new abilities in the future - Fixed regenerate, broken with r532 - Death Ward now works - I think "&&" now works with all abilities, needs to be tested...
This commit is contained in:
@@ -21,7 +21,7 @@ void GuiLayer::Add(JGuiObject *object){
|
||||
mCount++;
|
||||
}
|
||||
|
||||
void GuiLayer::Remove(JGuiObject *object){
|
||||
int GuiLayer::Remove(JGuiObject *object){
|
||||
for (int i=0;i<mCount;i++){
|
||||
if (mObjects[i]==object){
|
||||
delete mObjects[i];
|
||||
@@ -29,9 +29,10 @@ void GuiLayer::Remove(JGuiObject *object){
|
||||
mCount--;
|
||||
if (mCurr == mCount)
|
||||
mCurr = 0;
|
||||
return;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int GuiLayer::getMaxId(){
|
||||
|
||||
Reference in New Issue
Block a user