jpaver / opengametools

A set of open c++ game development tools that are lightweight, easy-to-integrate and free to use. Currently hosting a magicavoxel .vox full scene loader.
MIT License
373 stars 35 forks source link

Corrected scanf function for unixes to sscanf #1

Closed mrpossoms closed 4 years ago

mrpossoms commented 4 years ago

Previously _vox_str_scanf was defined as scanf for non-windows OSes, as a result, loading a vox file under Linux would cause the program to hang waiting for user input on stdin. Changed to sscanf to scan string as originally intended.

jpaver commented 4 years ago

Looks great, thanks for the fix!

mrpossoms commented 4 years ago

@jpaver Glad to help!