Handmade Hero»Forums»Code
William
6 posts
Day 067 - Bug in AddRadiusTo?
Just curious, but in the AddRadiusTo() method in handmade_math.h shouldn't it be the following:

1
2
Result.Min = A.Min - V2(RadiusW, RadiusH);
Result.Max = A.Max + V2(RadiusW, RadiusH);


As opposed to what is there now:

1
2
Result.Min = A.Min - V2(RadiusW, RadiusW);
Result.Max = A.Max + V2(RadiusH, RadiusH);


Or am I misunderstanding how this addition is supposed to work?
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
Day 067 - Bug in AddRadiusTo?
Nope! That's totally a typo... I'm 0 for 2 on day 67 :( NEED MORE CAFFEINE.

I'll make a note to fix it tomorrow.

Thanks,
- Casey
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
Day 067 - Bug in AddRadiusTo?
(Didn't quite get to this today, but I'll try to get to it tomorrow!)

- Casey