diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-04-21 12:05:06 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-04-21 12:07:27 -0700 |
commit | 96a5354401916dc7f5e448de7dc0348346141035 (patch) | |
tree | acc9f07a45ded221bda33a0aabd7450863c7b52d /bootstrap | |
parent | d3a061b1f94c99848a058db1cecd89c81aad4f77 (diff) |
game: fix typo in any_aabb initializationrev1
Missing comma silently resulted in aabb_any.min.x == -2
Excellent example of how using the same syntax for negative and
the subtraction operator creates opportunity for silent bugs.
This is the first time this particular thing has bitten me, doing
mostly systems programming throughout my life I haven't dealt much
with negative values and certainly not frequently initializing bags
of them as is common in game development.
This bug is why the collision hit boxes seemed so huge, it was only
on the horizontal axis, and actually just the minimum side but in-play
it appears to be both since there's always a minimum involved on a
horizontal collision.
Sigh.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions