UE2 - UT2kX Bug of the hour

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

rejecht

Attention Micronians
Jun 15, 2009
511
0
16
.no
sites.google.com
Code:
event bool [B]CheckEndGame[/B] (PlayerReplicationInfo [B]Winner[/B], string [B]Reason[/B])
{
    if (Reason ~= "TimeLimit")
    {
        if (!bOvertimeBroadcast)
        {
            bOverTimeBroadcast = true;
        }

        return false;
    }

    Super.CheckEndGame (Winner, Reason);
}

What's the fix for the bug?

return Super.CheckEndGame (Winner, Reason);

Now, if "return false" were to be omitted, the compiler would give the typical "Warning, CheckEndGame: Missing return value", but it just stops checking for return statements after it finds one; it doesn't check whether the last statement of a function has a return statement. (Is this check more strict in the UDK version of the compiler, perhaps?)