fix crash on window size decrease
rename to follow convention and add the hack comment
Merge pull request #593 from mzmiric5/bug_resize-while-rain-crashes-game

fixes #590, prevents crash on resize while raining