diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 99842a7197..1de6a18587 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,5 @@ January 30, 2009 +- Added weapdrop ccmd. - Centered the compatibility mode option in the comptibility options menu. - Added button mappings for 8 mouse buttons on SDL. It works with my system, but Linux being Linux, there are no guarantees that it's appropriate for diff --git a/src/g_game.cpp b/src/g_game.cpp index 754f0d6af1..241263af19 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -386,6 +386,11 @@ CCMD (invdrop) if (players[consoleplayer].mo) SendItemDrop = players[consoleplayer].mo->InvSel; } +CCMD (weapdrop) +{ + SendItemDrop = players[consoleplayer].ReadyWeapon; +} + CCMD (drop) { if (argv.argc() > 1 && who != NULL) diff --git a/src/m_options.cpp b/src/m_options.cpp index e3ede2da2d..8ed8c6b425 100644 --- a/src/m_options.cpp +++ b/src/m_options.cpp @@ -425,6 +425,7 @@ static menuitem_t ControlsItems[] = { control, "Next item", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"invnext"} }, { control, "Previous item", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"invprev"} }, { control, "Drop item", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"invdrop"} }, + { control, "Drop weapon", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"weapdrop"} }, { redtext, " ", {NULL}, {0.0}, {0.0}, {0.0}, {NULL} }, { whitetext,"Other", {NULL}, {0.0}, {0.0}, {0.0}, {NULL} }, { control, "Toggle automap", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"togglemap"} },