fixed undefined behaviour (overflow when casting float to int)
fixed undefined behaviour (overflow when casting float to int)

reven86/GamePlay,reven86/GamePlay,reven86/GamePlay,reven86/GamePlay,reven86/GamePlay