Skip to content

Commit

Permalink
Fix player movement in negative directions
Browse files Browse the repository at this point in the history
Watcom defaults to unsigned char, but codebase assumes char to be signed.
In player input struct speed is stored as char (1 byte) that needs to be signed.

Co-authored-by: kmeaw <[email protected]>
  • Loading branch information
Dasperal and kmeaw committed Oct 13, 2024
1 parent 8648b8c commit 4d43fc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ set_target_properties(rusdoom PROPERTIES
target_compile_options(rusdoom PRIVATE
-wx
-wcd=303
-j # treat char as signed
)

install(TARGETS rusdoom RUNTIME
Expand Down

0 comments on commit 4d43fc0

Please sign in to comment.