[refactoring5]: SW: No rocket launcher pushback at close ranges

Moderator: Raze Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
mjr4077au
Posts: 830
Joined: Sun Jun 16, 2019 9:17 pm
Graphics Processor: nVidia with Vulkan support
Location: Gosford NSW, Australia

[refactoring5]: SW: No rocket launcher pushback at close ranges

Post by mjr4077au »

Current behaviour:


Expected behaviour as per 1.5.0.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49204
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [refactoring5]: SW: No rocket launcher pushback at close ranges

Post by Graf Zahl »

fixed. This was caused by multiplying with (3 / 4) which C++ turns into a 0 because both values are integers.
User avatar
Rachael
Posts: 13883
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [refactoring5]: SW: No rocket launcher pushback at close ranges

Post by Rachael »

C++ gets you again! That sure is a tricky one that likes to sneak up on you when you least expect it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49204
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [refactoring5]: SW: No rocket launcher pushback at close ranges

Post by Graf Zahl »

It didn't even get a warning on MSVC warning level 4. :(

Return to “Closed Bugs [Raze]”