your last error 4/4
wut is going on with the flags?
/* if our flag is set, there is a problem */
if (!theCombat->opponentFlag[1]) {
theCombat->opponentFlag[0] = TRUE;
theCombat->opponentFlag[1] = FALSE;
Do_opponent_struct(c, &theCombat->opponent[1]);
if (c->player.energy <= 0) {
theCombat->message = IT_JUST_DIED;
Do_unlock_mutex(&theCombat->theLock);
kill(theCombat->opponent[0].processID ,SIGIO);
Do_lock_mutex(&c->realm->realm_lock);
c->game->it_combat = NULL;
Do_unlock_mutex(&c->realm->realm_lock);[/code]
Now I am not the most avid C++ coder which btw I must give you sum serious coodos for such a nice program.. But I dont beleive the BOLD sentences are legitimate arguments, even though your IDE may let you get away with this, I dont beleive that those two lines actually do something. maybe if you proceded with an "if" statement and capped the arguments in braces it "MIGHT" work. I was hesitant to awnser with a reply cause I didnt want to fail/seam like a dumbass offering null advice, but who knows maybe it might work? and at the very least a bump to the thread
wut is going on with the flags?
/* if our flag is set, there is a problem */
if (!theCombat->opponentFlag[1]) {
theCombat->opponentFlag[0] = TRUE;
theCombat->opponentFlag[1] = FALSE;
Do_opponent_struct(c, &theCombat->opponent[1]);
if (c->player.energy <= 0) {
theCombat->message = IT_JUST_DIED;
Do_unlock_mutex(&theCombat->theLock);
kill(theCombat->opponent[0].processID ,SIGIO);
Do_lock_mutex(&c->realm->realm_lock);
c->game->it_combat = NULL;
Do_unlock_mutex(&c->realm->realm_lock);[/code]
Now I am not the most avid C++ coder which btw I must give you sum serious coodos for such a nice program.. But I dont beleive the BOLD sentences are legitimate arguments, even though your IDE may let you get away with this, I dont beleive that those two lines actually do something. maybe if you proceded with an "if" statement and capped the arguments in braces it "MIGHT" work. I was hesitant to awnser with a reply cause I didnt want to fail/seam like a dumbass offering null advice, but who knows maybe it might work? and at the very least a bump to the thread
slowly getting better