Joe91 / fun-bots

A highly customizable and configurable bot mod for your Venice Unleashed Battlefield 3 server.
https://discord.gg/zNk3qCzk6x
249 stars 46 forks source link

remove: unused local variables; fix: float compare error #256

Closed joao-vitor-souza closed 1 year ago

joao-vitor-souza commented 1 year ago

This PR removes the unused locals s_IsOtherTracePath, s_NextIndex, s_LastIndex, s_CurrentPathIndex, s_Chance, s_Found and an m_Logger object. Also, due to their rounding errors, it's better to avoid comparations (== and ~=) between float numbers, so it fixes this. Double quotes were replaced by single quotes, as an attempt to standardize string representation in these files. It fixes a typo in the m_Logger in BotMovement.lua. Finally, it comments an if statement that's not being used in NodeCollection.lua, this statement is disabled since it's always false.