Skip to content

Commit

Permalink
Fix texture loading
Browse files Browse the repository at this point in the history
Watcom defaults to minimal size for enum, but code base assumes enums to always be 4 bytes.
Boolean type is an enum with 2 values and was shrunk to 1 byte, but there is a 4-byte boolean field in texture entry in TEXTUREx lump.

Co-authored-by: kmeaw <[email protected]>
  • Loading branch information
Dasperal and kmeaw committed Oct 13, 2024
1 parent 4d43fc0 commit dfa4c94
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 @@ -97,6 +97,7 @@ target_compile_options(rusdoom PRIVATE
-wx
-wcd=303
-j # treat char as signed
-ei # use 4 bytes for enum
)

install(TARGETS rusdoom RUNTIME
Expand Down

0 comments on commit dfa4c94

Please sign in to comment.