Commit Graph
14 Commits
Author SHA1 Message Date
leo60228 6795856431 Use SDL_fabsf where std::abs was previously used 2021-01-01 22:37:46 -05:00
leo60228 91c3e6cbc5 Revert "Document SDL_abs vs. SDL_fabs"
This reverts commit 8c472ed73d.
2021-01-01 22:37:46 -05:00
leo60228 8c472ed73d Document SDL_abs vs. SDL_fabs 2021-01-01 21:10:16 -05:00
leo60228 c4893a133f Use SDL_abs instead of std::abs
This prevents issues when calling std::abs with a float on some older
compilers. While it would normally be promoted to an int, std::abs is
special due to being overloaded despite being a C function. This can
cause errors due to the compiler being unable to find a float overload.
SDL_abs doesn't have this problem, since it's a normal C function.
2021-01-01 21:10:16 -05:00
leo60228 a99e976402 Support hex entities in metadata 2020-06-15 20:32:10 -04:00
leo60228 dd5c50c94c Fix some leaks 2020-06-07 22:40:03 -04:00
leo60228 887c1fbf96 Don't leak flipbfont 2020-06-07 22:40:03 -04:00
leo60228 abbf6bafb9 Don't leak sounds/music 2020-06-07 22:40:03 -04:00
leo60228 f3b26904ec Don't leak binaryBlob 2020-06-07 22:40:03 -04:00
leo60228 9b91047bba Find SDL_mixer.h instead of assuming it's in the same location as SDL.h 2020-06-07 22:40:03 -04:00
leo60228 d193caac98 Revert "Add destructor for SoundTrack/MusicTrack (and explicitly define move constructor to prevent double-free)"
This reverts commit 2f760af439.
2020-06-07 22:40:03 -04:00
leo60228 098fb77611 Set C++ standard to C++98 2020-06-07 22:40:03 -04:00
leo60228 e71f47f1c9 Clear soundTracks and musicTracks on musicclass::init 2020-06-07 00:04:42 -04:00
leo60228 2f760af439 Add destructor for SoundTrack/MusicTrack (and explicitly define move constructor to prevent double-free) 2020-06-07 00:04:42 -04:00