Seems this one was originally implemented in a quite hacky way. Let me know if you're open to refactor this if I can keep all the existing behaviors.
Tested with actual con03 map (see below screenshot)
Required sign-off
[x] I confirm that my PR does not contain any commercial or protected assets and/or source code.
[x] I agree in advance that my codes will be licensed automatically under the Apache License or similar BSD/MIT-like
open source licenses in case if OpenNox Project will adopt such a non-GPL license in the future.
Just for fun, converted one method from C to Go.
Seems this one was originally implemented in a quite hacky way. Let me know if you're open to refactor this if I can keep all the existing behaviors.
Tested with actual con03 map (see below screenshot)
Required sign-off