KnuckleCracker / CW4-bug-tracker

The gathering point for bugs and supporting information, or suggestions about additional features.
Creative Commons Attribution Share Alike 4.0 International
13 stars 1 forks source link

ApplyToDamageMap can 'hang' #1037

Closed knucracker closed 2 years ago

knucracker commented 2 years ago

If a very large range is passed into ApplyToDamageMap in 4rpl, the call can take a long time to return.

knucracker commented 2 years ago

Added a bounds check on the range and limit it to the max(map_width, map_height).