In book.c, line 399 should be:
- Code: Select all
g_fdBook = open(g_Options.szBookName,
O_RDWR | O_CREAT |
O_RANDOM | O_BINARY | _S_IREAD | _S_IWRITE, S_IRWXU );
instead of:
- Code: Select all
g_fdBook = open(g_Options.szBookName,
O_RDWR | O_CREAT |
O_RANDOM | O_BINARY | _S_IREAD | _S_IWRITE);
Without that fix, gcc 4.4.1 wont compile it, and clang 1.1 generates an executable that crashes when starting a game.
I have mailed Typhoon developer (Scott Gasch), but i received no answer. How could i proceed so others can benefit from the patch?