changeset | e52a8a7ad4c5 |
---|---|
branch | |
bookmark | |
tag | |
user | John "Elwin" Edwards |
description | Fix many compiler warnings. There should only be two changes in behavior: arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly applied to characters who are not monks instead of monks who are not empty-handed. urogue/fight.c: fixed an interaction with the "debug" macro that could cause the wrong message to be displayed. |
files |
changeset | 70aa5808c782 |
---|---|
branch | |
bookmark | |
tag | |
user | John "Elwin" Edwards |
description | Fix potential segfaults at restore related to ctime(). In some games, restore() passes the result of ctime() to mvprintw() or some other variadic message-formatting function. If ctime() has not been declared properly, its return type is inferred to be int instead of char *. This does not cause a warning because the compiler does not know the correct type of variadic arguments. On platforms where ints and pointers are not the same size, this can, probably depending on alignment, result in a segfault that is not easy to trace. Including time.h fixes the problem. Some games manually declared ctime() and avoided the bug. These declarations have also been replaced with the include. |
files |
changeset | d3968e9cb98d |
---|---|
branch | |
bookmark | |
tag | |
user | John "Elwin" Edwards |
description | Use C stdio functions for score files and save files. Switching from Unix file descriptor operations to C standard FILE* functions will reduce portability problems. |
files |
changeset | 3d4252fa2ed3 |
---|---|
branch | |
bookmark | |
tag | |
user | John "Elwin" Edwards |
description | Use more portable random seed generation. The new function md_random_seed() has replaced time() + getpid() and similar methods. Putting everything in mdport.c slightly reduces the warnings and workarounds. |
files |
changeset | b24545357d2e |
---|---|
branch | |
bookmark | |
tag | |
user | John "Elwin" Edwards |
description | rogue4: add more function declarations. |
files |
changeset | 1b73a8641b37 |
---|---|
branch | |
bookmark | |
tag | |
user | John "Elwin" Edwards |
description | rogue4: fix most GCC5 warnings. Converting all function definitions to ANSI style accounts for most of the change. This has exposed other problems, such as daemons not actually being their stated type, that will require more careful solutions. |
files |
changeset | ea7372f5d314 |
---|---|
branch | |
bookmark | |
tag | |
user | edwarj4 |
description | rogue4: add logging all games |
files |
changeset | 63b9fd7d70ce |
---|---|
branch | |
bookmark | |
tag | |
user | edwarj4 |
description | rogue4: add -n option and system savedir |
files |
changeset | 9535a08ddc39 |
---|---|
branch | |
bookmark | |
tag | |
user | edwarj4 |
description | Import Rogue 5.2 from the Roguelike Restoration Project (r1490) |
files |