From: divverent Date: Mon, 12 Dec 2011 08:37:47 +0000 (+0000) Subject: m_toggle takes a parameter, fix its definition X-Git-Tag: xonotic-v0.6.0~109 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cb8b858fd1884c80c467eb72c6a71579d733ce67;p=xonotic%2Fdarkplaces.git 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 ::stable-branch::merge=3b602bcc324d22a9d2cf918a66f880d92a81ffe7 --- 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)