Fix specbomb desynching Saturn users #24

Merged
Indev450 merged 1 commits from fix-spectator-checkboolean into Saturn 2023-08-16 13:14:43 +02:00
Indev450 commented 2023-08-16 11:09:17 +02:00 (Migrated from github.com)

Original setter for player.spectator was using lua_toboolean, which allows conversion from any other type (such as numbers). Meanwhile setter in Saturn was using luaL_checkboolean, which throws an error when argument is not boolean. Weird that some parts of code use checkboolean, and some toboolean, but oh well

Original setter for `player.spectator` was using `lua_toboolean`, which allows conversion from any other type (such as numbers). Meanwhile setter in Saturn was using `luaL_checkboolean`, which throws an error when argument is not boolean. Weird that some parts of code use checkboolean, and some toboolean, but oh well
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: saturn/SRB2Kart-Saturn#24