raze/polymer/eduke32/source
hendricks266 3c5aeae341 Modify EVENT_CHANGEWEAPON so that it actually serves a purpose. Instead of being triggered before curr_weapon is changed, with nothing used for input or output with RETURN (meaning you could not cancel), now RETURN is set to the prospective new weapon ID and you can change it or cancel it in the event.
Note that since setting RETURN did nothing before, there is no backwards compatibility to uphold. Therefore, setting RETURN to 1 will cause the pistol to be selected, not disable the event. Set RETURN to -1 to cancel switching.

git-svn-id: https://svn.eduke32.com/eduke32@2976 1a8010ca-5511-0410-912e-c29ae57300e0
2012-08-27 03:53:59 +00:00
..
enet Update ENet with changes from the newest version from CVS (yes, they still use CVS) 2012-05-17 21:42:53 +00:00
jaudiolib Update our prebuilt MinGW libogg/libvorbis/libvorbisfile to the newest versions, courtesy of forum user LeoD 2012-07-06 18:40:54 +00:00
jmact control layer: comment out some unused functions and stuff. 2012-08-20 21:24:54 +00:00
lunatic Add EVENT_PREGAME. Now all sprites are processed in the following fashion: 2012-08-27 03:49:55 +00:00
misc
xdelta3 Fix a "set but not used warning" in xdelta3.c, revert definition of XD3_ASSERT. 2012-06-03 19:20:32 +00:00
_functio.h Wii: Minor adjustments to the joystick defaults for the Classic Controller. 2012-07-05 17:55:44 +00:00
_midi.h Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
_rts.h
actors.c Add EVENT_PREGAME. Now all sprites are processed in the following fashion: 2012-08-27 03:49:55 +00:00
actors.h Lunatic: clean up handing of ac/mv internally, add control module. 2012-08-06 20:00:29 +00:00
anim.c In places where fullscreen tiles are drawn (logo etc.), use clearallviews(). 2012-08-19 12:53:24 +00:00
anim.h
animvpx.c VP8: clamp GL texture to edge if possible, preventing potential stray lines 2012-07-13 18:21:00 +00:00
animvpx.h VP8: collect times while playing the video and print a summary to the log afterwards. 2012-07-13 18:20:55 +00:00
astub.c Mapster32: properly reset highlights in undo/redo. 2012-08-20 21:27:42 +00:00
common.c Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness 2012-07-01 22:11:33 +00:00
common_game.h Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness 2012-07-01 22:11:33 +00:00
config.c On Linux build without startup GUI, don't save ModDir to config. 2012-08-24 18:55:06 +00:00
config.h Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness 2012-07-01 22:11:33 +00:00
demo.c A couple of trivial changes. 2012-08-24 18:54:01 +00:00
demo.h
duke3d.h Make DukePlayer_t's transporter_hold an int16_t again. 2012-07-25 18:56:11 +00:00
function.h
game.c Quit the game if SE17 (warp elevator) setup fails. 2012-08-26 22:17:14 +00:00
game.h Replace some literal numbers denoting SEs/STs by symbolic enumeration values. 2012-08-26 22:16:08 +00:00
gamedef.c Add EVENT_PREGAME. Now all sprites are processed in the following fashion: 2012-08-27 03:49:55 +00:00
gamedef.h Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness 2012-07-01 22:11:33 +00:00
gamedefs.h Massive menu input control revamp/cleanup/factor. (added: input.[ch]) 2012-06-03 16:11:22 +00:00
gameexec.c Expand "Switch weapons on pickup" to three options: "Off", "All weapons", and a new one, "Fav priority". It switches to the weapon you have just picked up only if it is ranked higher in the favorite weapon hierarchy using the "-u" parameter. 2012-08-27 03:52:38 +00:00
gameexec.h Add EVENT_PREGAME. Now all sprites are processed in the following fashion: 2012-08-27 03:49:55 +00:00
gamestructures.c Mass text replacement g_player[p].ps --> ps, part 1 (the easy one). 2012-08-10 19:11:53 +00:00
gamevars.c The handling for grp, con, and def filenames has been massively cleaned up and factored into common.c. A new header, common_game.h, was created because common.h was placed in build/include (see r2542) and we need a common header for things that strictly should not be in the engine. RTS file names were also improved but some of the patterned changes were already made in r2420, and they were not factored because they are strictly part of the game, not the editor. 2012-06-03 16:09:33 +00:00
gamevars.h Fix gamearrays on 64-bit platforms. 2012-05-25 15:23:48 +00:00
global.c Fake multi-mode: better -q* messages, make surplus APLAYER sprites invisible. 2012-08-16 21:48:13 +00:00
global.h Fake multi-mode: better -q* messages, make surplus APLAYER sprites invisible. 2012-08-16 21:48:13 +00:00
GNU.TXT
grpscan.c The handling for grp, con, and def filenames has been massively cleaned up and factored into common.c. A new header, common_game.h, was created because common.h was placed in build/include (see r2542) and we need a common header for things that strictly should not be in the engine. RTS file names were also improved but some of the patterned changes were already made in r2420, and they were not factored because they are strictly part of the game, not the editor. 2012-06-03 16:09:33 +00:00
grpscan.h Capitalize numgrpfiles macro to NUMGRPFILES. 2012-03-26 22:03:40 +00:00
input.c Clean up a couple of rotatesprite uses. 2012-08-19 12:56:51 +00:00
input.h Massive menu input control revamp/cleanup/factor. (added: input.[ch]) 2012-06-03 16:11:22 +00:00
keys.h
m32def.c Mapster32: add "extend all highlighted sectors" func to 'F menu via a.m32. 2012-08-06 20:00:35 +00:00
m32def.h New M32Script command "getspritelinktype" <spritenum> <<linktypevar>>. 2012-04-05 19:49:12 +00:00
m32exec.c Text-repl.: hitinfo variables -> hit, hit{sprite,sect,wall} members -> no "hit" 2012-08-10 19:12:01 +00:00
m32structures.c
m32vars.c Mapster32: add "extend all highlighted sectors" func to 'F menu via a.m32. 2012-08-06 20:00:35 +00:00
macros.h Accumulated trivia, mostly "the usual". 2012-05-05 22:23:44 +00:00
mapster32.h In Mapster32, remove ReadGamePalette() and GAMEpalette[] and use engine's palette[]. 2012-03-22 22:46:56 +00:00
mdump.cpp Superficial text changes: 2012-03-26 05:05:57 +00:00
mdump.h
menus.c Expand "Switch weapons on pickup" to three options: "Off", "All weapons", and a new one, "Fav priority". It switches to the weapon you have just picked up only if it is ranked higher in the favorite weapon hierarchy using the "-u" parameter. 2012-08-27 03:52:38 +00:00
menus.h
midi.c
midi.h Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
mpu401.c
mpu401.h Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
music.c This should fix the "assignment discards 'const' qualifier" warning in music.c. 2012-07-09 19:00:23 +00:00
names.h
namesdyn.c Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness 2012-07-01 22:11:33 +00:00
namesdyn.h Patch adding Wii support by tueidj, part 11: miscellaneous changes 2012-05-01 12:41:13 +00:00
net.c net: do strtok on a duplicated string containing the address in Net_Connect(). 2012-06-03 19:20:41 +00:00
net.h Fake multi-mode: better -q* messages, make surplus APLAYER sprites invisible. 2012-08-16 21:48:13 +00:00
old.diff
osdcmds.c Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness 2012-07-01 22:11:33 +00:00
osdcmds.h Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness 2012-07-01 22:11:33 +00:00
osdfuncs.c Clean up a couple of rotatesprite uses. 2012-08-19 12:56:51 +00:00
osdfuncs.h
player.c Modify EVENT_CHANGEWEAPON so that it actually serves a purpose. Instead of being triggered before curr_weapon is changed, with nothing used for input or output with RETURN (meaning you could not cancel), now RETURN is set to the prospective new weapon ID and you can change it or cancel it in the event. 2012-08-27 03:53:59 +00:00
player.h Redraw background when ud.screen_size >= 8, unconditional on ud.statusbarscale. 2012-08-16 21:48:58 +00:00
premap.c Replace some literal numbers denoting SEs/STs by symbolic enumeration values. 2012-08-26 22:16:08 +00:00
premap.h Clear up handling of g_*NamePtr in the game. 2012-03-28 19:44:00 +00:00
quotes.h Addition of 3 events: 2012-05-14 18:12:27 +00:00
rev.h
rts.c Fix the overlooking of EDUKE.CON in the absence of DUKE3D.GRP caused by r2726. Also, tweak a few string literals' use of quotation marks. 2012-06-27 17:45:52 +00:00
rts.h
savegame.c Replace some literal numbers denoting SEs/STs by symbolic enumeration values. 2012-08-26 22:16:08 +00:00
savegame.h Save 'Numsprites' into savegames and mapstates. Bump savegame minor version. 2012-03-14 22:31:49 +00:00
sdlmusic.c Constify various char* vars, parameters, etc. for more -Wwrite-strings cleanness 2012-07-01 22:11:33 +00:00
sector.c Replace some literal numbers denoting SEs/STs by symbolic enumeration values. 2012-08-26 22:16:08 +00:00
sector.h Fake multi-mode: better -q* messages, make surplus APLAYER sprites invisible. 2012-08-16 21:48:13 +00:00
soundefs.h
sounds.c Pack how many players fake multi was started with into g_fakeMultiMode. 2012-08-22 22:51:38 +00:00
sounds.h First round of sounds.c cleanup, no functional changes. 2012-08-13 18:25:48 +00:00
sounds_mapster32.c
sounds_mapster32.h
standard.h Fix JonoF's email address. 2012-03-12 04:47:04 +00:00
startgtk.game.c The handling for grp, con, and def filenames has been massively cleaned up and factored into common.c. A new header, common_game.h, was created because common.h was placed in build/include (see r2542) and we need a common header for things that strictly should not be in the engine. RTS file names were also improved but some of the patterned changes were already made in r2420, and they were not factored because they are strictly part of the game, not the editor. 2012-06-03 16:09:33 +00:00
startwin.game.c The handling for grp, con, and def filenames has been massively cleaned up and factored into common.c. A new header, common_game.h, was created because common.h was placed in build/include (see r2542) and we need a common header for things that strictly should not be in the engine. RTS file names were also improved but some of the patterned changes were already made in r2420, and they were not factored because they are strictly part of the game, not the editor. 2012-06-03 16:09:33 +00:00
startwin.game.h
winbits.c