Commit graph

4071 commits

Author SHA1 Message Date
Simon Howard
9ea4b024c2
Merge pull request #1079 from hifi/fix-setup-crash
setup: Use proper function signatures for callbacks
2018-08-18 00:47:56 -04:00
Jonathan Dowland
98f4af33f4
Merge pull request #1077 from hifi/fix-joystick-event-skip
doom: Don't skip joy events when menu is closed
2018-08-15 18:21:45 +01:00
Toni Spets
2d68e0791c setup: Use proper function signatures for callbacks
This prevents the setup main menu from crashing when the caller
does not clean the stack.
2018-08-15 19:52:30 +03:00
Toni Spets
078673f730 doom: Don't skip joy events when menu is closed
Fixes #1015.
2018-08-12 12:00:39 +03:00
Simon Howard
dd78c0873e
Merge pull request #1074 from AXDOOMER/master
Heretic: Fix P_FindNextHighestFloor's behavior
2018-08-11 13:02:27 -04:00
Alexandre-Xavier Labonté-Lamoureux
1134129bf8 Heretic: Fix P_FindNextHighestFloor's behavior
The floor would raise to INT_MAX if no surrounding sector was higher, which isn't how vanilla Heretic behaves.
2018-08-06 21:03:16 -04:00
Simon Howard
82ff0b7009
Merge pull request #1072 from turol/const
More const correctness
2018-08-02 17:10:57 -04:00
Turo Lamminen
ef9843f52c doom: Make msgNames contents const 2018-07-31 18:30:08 +03:00
Turo Lamminen
40b87adce9 doom: Make detailNames contents const 2018-07-31 18:30:08 +03:00
Turo Lamminen
8c763b6ea9 doom: Make skullName contents const 2018-07-31 18:30:08 +03:00
Turo Lamminen
402de60712 doom: Make sprnames contents const and fix some function parameters to match 2018-07-31 18:30:08 +03:00
Turo Lamminen
19202f1c52 doom: Fix constness issue in HU_Responder 2018-07-31 18:30:08 +03:00
Turo Lamminen
c5384b04ba doom: Make mapnames_commercial contents const 2018-07-31 18:30:08 +03:00
Turo Lamminen
39d9cd20d2 doom: Make mapnames_chex contents const 2018-07-31 18:30:00 +03:00
Turo Lamminen
a02f9777a1 doom: Make mapnames contents const 2018-07-31 18:24:52 +03:00
Turo Lamminen
1222f2eb76 doom: Make player_names contents const 2018-07-31 18:23:57 +03:00
Turo Lamminen
4b988f2813 doom: Make M_StringWidth parameter const 2018-07-31 18:23:05 +03:00
Turo Lamminen
5f92a20c1c doom: Make M_WriteText string parameter const 2018-07-31 18:22:13 +03:00
Turo Lamminen
595ef234b0 doom: Fix constness issue in M_WriteText 2018-07-31 18:22:07 +03:00
Turo Lamminen
c150deb368 doom: Fix constness issue in G_DoPlayDemo 2018-07-28 15:29:54 +03:00
Turo Lamminen
f3cf920e4a doom: Make DemoVersionDescription return value const 2018-07-28 15:28:07 +03:00
Turo Lamminen
c5dabb5b5b doom: Make castinfo_t name member const 2018-07-28 15:24:58 +03:00
Turo Lamminen
714d40f3bf doom: Make textscreen_t text member const 2018-07-28 15:24:13 +03:00
Turo Lamminen
78a5cc8411 doom: Make textscreen_t background member const 2018-07-28 15:22:15 +03:00
Turo Lamminen
0efd5a7800 doom: Make gamedescription variable const 2018-07-28 15:15:40 +03:00
Turo Lamminen
8481757946 doom: Make gameversions cmdline member const 2018-07-28 15:11:07 +03:00
Turo Lamminen
c3f94ff38b doom: Make gameversions description member const 2018-07-24 18:42:46 +03:00
Turo Lamminen
96bb3bfc57 doom: Make SetMissionForPackName parameter const 2018-07-24 18:37:14 +03:00
Turo Lamminen
02d6cce19f doom: Fix const correctness issue in SetMissionForPackName 2018-07-24 18:36:49 +03:00
Turo Lamminen
042ed3a817 d_iwad: Make iwad_t description member const 2018-07-24 18:34:39 +03:00
Turo Lamminen
2d18a40593 d_iwad: Make iwad_t name member const 2018-07-24 18:34:24 +03:00
Turo Lamminen
d7565fb3ca d_iwad: Make D_SuggestGameName return value const 2018-07-24 18:32:51 +03:00
Turo Lamminen
5d82938c3c d_iwad: Make D_SuggestIWADName return value const 2018-07-24 18:31:42 +03:00
Mike Swanson
f177dcbc08 wad: Make w32 MapFile filename parameter const 2018-07-21 09:31:29 -07:00
Turo Lamminen
6b923b07a7 doom: Make copyright banner const 2018-07-21 17:09:52 +03:00
Turo Lamminen
2ecb680cc7 doom: Make end messages const 2018-07-21 17:07:59 +03:00
Turo Lamminen
891e6c4e9a doom: Make M_SelectEndMessage return value const 2018-07-21 17:07:07 +03:00
Turo Lamminen
3982d04b73 doom: Make banners variable const 2018-07-21 16:56:35 +03:00
Turo Lamminen
1524b8f82b wad: Free results of D_TryFindWADByName in W_ParseCommandLine 2018-07-21 16:56:35 +03:00
Turo Lamminen
6cabdf8774 wad: Make W_NWTMergeFile filename parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
45ad423f2b wad: Make W_NWTDashMerge parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
08a4de5833 wad: Make W_MergeFile parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
a138539a57 wad: Make W_AddFile parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
a2b9c9c5d3 wad: Make W_OpenFile parameters const 2018-07-21 16:56:35 +03:00
Turo Lamminen
a934b69f22 wad: Make OpenFile parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
663f9f92a5 wad: Make posix MapFile filename parameter const 2018-07-21 16:56:35 +03:00
Turo Lamminen
7f9e8f65a2 deh: Free result of D_TryFindWADByName in DEH_ParseCommandLine 2018-07-21 16:56:35 +03:00
Turo Lamminen
bde4ac7620 d_iwad: Make D_TryFindWADByName parameter const 2018-07-21 16:27:36 +03:00
Turo Lamminen
6a500c4269 d_iwad: One path through D_TryFindWADByName creates a new string so all paths must
Otherwise the caller won't know whether it should free the string
2018-07-21 16:27:31 +03:00
Fabian Greffrath
ce7f7c8f4f make some initialization functions (well, kind of) reentrant
In Choco these functions are run only once at start-up, so this will
make no difference, but for Crispy I want to support changing the
framebuffer size in-game, thus I will need to be able to re-run these
functions at run-time.
2018-07-20 13:18:56 +02:00