GoldenEye: Source Forums

Debriefing => Bug Reports & Fixes => Topic started by: Troy on April 22, 2013, 04:30:34 am

Title: [Bug] End match
Post by: Troy on April 22, 2013, 04:30:34 am
I want the match to automatically end if the round ends x amount of times.  As a test I did this:

   
Code: [Select]
def OnRoundEnd(self):
        GERules.EndMatch()

The results is:

Match Ending...
Match Ending...

I suppose this may this be happening because I'm overriding the normal end round process.  There isn't an end round report.  I've also noticed that when I close the match score report window, another one pops up right behind it...
Title: Re: [Bug] End match
Post by: killermonkey on April 22, 2013, 10:27:49 am
Interesting... What times did you have for match and round? Did you disable the round clock?
Title: Re: [Bug] End match
Post by: Troy on April 22, 2013, 05:32:23 pm
Map time: 30 minutes
Round time: 5 minutes

It only happens with this function.  I tested this by creating a LAN server.
Title: Re: [Bug] End match
Post by: killermonkey on April 24, 2013, 01:58:34 am
Ok I fixed it. The problem was a recursive call because you are calling to end the match while in the process of ending the round. This resulted in calling back into "OnRoundEnd" multiple times, repeating itself. Good catch!