Debriefing > Bug Reports & Fixes

[Bug] End match

(1/1)

Troy:
I want the match to automatically end if the round ends x amount of times.  As a test I did this:

   
--- Code: ---
def OnRoundEnd(self):
        GERules.EndMatch()
--- End code ---

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...

killermonkey:
Interesting... What times did you have for match and round? Did you disable the round clock?

Troy:
Map time: 30 minutes
Round time: 5 minutes

It only happens with this function.  I tested this by creating a LAN server.

killermonkey:
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!

Navigation

[0] Message Index

Go to full version