From 3b602bcc324d22a9d2cf918a66f880d92a81ffe7 Mon Sep 17 00:00:00 2001 From: divverent Date: Mon, 12 Dec 2011 08:37:47 +0000 Subject: [PATCH] m_toggle takes a parameter, fix its definition Signed-off-by: terencehill git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11613 d7cf8633-e32d-0410-b094-e92efae38249 --- dpdefs/menudefs.qc | 2 +- menu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dpdefs/menudefs.qc b/dpdefs/menudefs.qc index 9cd52bb9..a186dcee 100644 --- a/dpdefs/menudefs.qc +++ b/dpdefs/menudefs.qc @@ -16,7 +16,7 @@ void end_sys_fields; void() m_init; void(float keynr, float ascii) m_keydown; void() m_draw; -void() m_toggle; +void(float mode) m_toggle; void() m_shutdown; ///////////////////////////////////////////////////////// diff --git a/menu.c b/menu.c index eb741b2a..149e8421 100644 --- a/menu.c +++ b/menu.c @@ -5313,7 +5313,7 @@ static void MP_ToggleMenu(int mode) prvm_prog_t *prog = MVM_prog; prog->globals.generic[OFS_PARM0] = (float) mode; - prog->ExecuteProgram(prog, PRVM_menufunction(m_toggle),"m_toggle() required"); + prog->ExecuteProgram(prog, PRVM_menufunction(m_toggle),"m_toggle(float mode) required"); } static void MP_NewMap(void) -- 2.39.2