freebsd-ports/games/egl/files/patch-unix__x11_main.c
Alejandro Pulver b2088a9b7a - Update to version 0.3.1.
- Add more OPTIONS (allow building without X11).
2006-07-25 00:36:22 +00:00

28 lines
764 B
C

--- unix/x11_main.c.orig Mon Jul 24 16:51:38 2006
+++ unix/x11_main.c Mon Jul 24 16:53:17 2006
@@ -51,6 +51,7 @@
cVar_t *in_mouse;
+static void *cmd_force_centerview;
/*
==========================================================================
@@ -690,7 +691,7 @@
// Mouse variables
in_dgamouse = Cvar_Register ("in_dgamouse", "1", CVAR_ARCHIVE);
- Cmd_AddCommand (qFalse, "force_centerview", Force_CenterView_f, "Force the screen to a center view");
+ cmd_force_centerview = Cmd_AddCommand ("force_centerview", Force_CenterView_f, "Force the screen to a center view");
}
@@ -701,7 +702,7 @@
*/
void IN_Shutdown (void)
{
- Cmd_RemoveCommand ("force_centerview", NULL);
+ Cmd_RemoveCommand ("force_centerview", cmd_force_centerview);
}