]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
m_toggle takes a parameter, fix its definition
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Dec 2011 08:37:47 +0000 (08:37 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 12 Dec 2011 09:05:52 +0000 (10:05 +0100)
Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11613 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3b602bcc324d22a9d2cf918a66f880d92a81ffe7

dpdefs/menudefs.qc
menu.c

index 9cd52bb9b25fc965140c85f8682656fa8380cc34..a186dcee12af48e8d203620514e1a57b008cbedd 100644 (file)
@@ -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 eb741b2a2437a9033bebcd1939d7b01de28e342a..149e8421bed608d309e0851a692ab3a0441fa74d 100644 (file)
--- 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)