alexstrout / foxWSFix-UT99

Improved widescreen support for Unreal Tournament 1999.
MIT License
31 stars 0 forks source link

Ugly Enforcer hack prints error to log #5

Open alexstrout opened 2 years ago

alexstrout commented 2 years ago

Minor issue, but the "Ugly Enforcer hack" is missing a None check, which dumps an error to log every time a player switches weapons that aren't Enforcers: https://github.com/alexstrout/foxWSFix-UT99/blob/22d649fdc31dc440285e07c72f1e2965125bbaf7/Classes/foxUTConsole.uc#L179

This should look like: if (Enforcer(W) != None && Enforcer(W).SlaveEnforcer != None) { //Ugly Enforcer hack

Nothing breaks and the code continues normally (correctly skipping that branch), but worth noting for a future fix.