smilz0 / Left4Bots

Improvements for the L4D2 survivor bots
https://steamcommunity.com/sharedfiles/filedetails/?id=3022416274
39 stars 4 forks source link

Tiny optimization for a debug log early on in the OnGameEvent_round_start hook. #19

Closed LeGurdah closed 1 year ago

LeGurdah commented 1 year ago

Because a debug log bit for Left 4 Fun in the early part of the _OnGameEvent_roundstart hook was surprisingly easy to simplify, I was able to remove an "if" and "else" condition, and applied the condition it checked for directly onto Left4Bots.L4F, and using a (temporary) string version of the bool itself in the log.

(Unless said message as a whole will be changed or smthing. In which case, this pull can be safely ignored.)

With that said, this might take a tad longer to review than my earlier pull request, if only because now it needs to be quickly tested with Left 4 Fun active. But I'm confident this won't take long, and that it won't produce a bug or two (at least, that's the hope.)