summaryrefslogtreecommitdiff
path: root/games/fuhquake/files/patch-menu.c
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-07-23 19:01:03 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-07-23 19:01:03 +0000
commit73540c85c76da5f81f9edd8bbdf17839ed78a432 (patch)
tree35346413aecbbf70b02564abe003e49e25e7f607 /games/fuhquake/files/patch-menu.c
parent- Bump PORTREVISION. (diff)
- Remove obsolete svga patch.
- Remove LITS and SKYBOXES options (JoeQuake is based on FuhQuake, so it also supports them; a separate port has been done). - Use patches instead of ${REINPLACE_CMD}. - Add HUD option. - Make FuhQuake write in ~/.fuhquake. PR: ports/91893 Submitted by: alepulver (myself) Approved by: maintainer (timeout)
Notes
Notes: svn path=/head/; revision=168575
Diffstat (limited to 'games/fuhquake/files/patch-menu.c')
-rw-r--r--games/fuhquake/files/patch-menu.c53
1 files changed, 49 insertions, 4 deletions
diff --git a/games/fuhquake/files/patch-menu.c b/games/fuhquake/files/patch-menu.c
index 5621baafddfe..e57e2054a1f7 100644
--- a/games/fuhquake/files/patch-menu.c
+++ b/games/fuhquake/files/patch-menu.c
@@ -1,6 +1,6 @@
---- menu.c.orig Thu Feb 5 00:33:07 2004
-+++ menu.c Thu Feb 5 00:34:32 2004
-@@ -411,9 +436,11 @@
+--- menu.c.orig Wed Jan 7 01:02:12 2004
++++ menu.c Tue Jan 31 13:49:29 2006
+@@ -411,9 +411,11 @@
Cvar_SetValue (&cl_hudswap, !cl_hudswap.value);
break;
@@ -12,7 +12,7 @@
}
}
-@@ -873,24 +900,24 @@
+@@ -873,24 +875,24 @@
M_Print (16, 96, " Pickup flashes");
M_DrawCheckbox (ALIGN_FPS_OPTIONS, 96, v_bonusflash.value);
@@ -43,3 +43,48 @@
// cursor
M_DrawCharacter (196, 32 + fps_cursor * 8, 12 + ((int) (curtime * 4) & 1));
+@@ -1225,8 +1227,6 @@
+
+
+ progs = (dprograms_t *) FS_LoadHunkFile ("spprogs.dat");
+- if (progs && !file_from_gamedir)
+- Cbuf_AddText ("gamedir qw\n");
+ Cbuf_AddText ("map start\n");
+ }
+
+@@ -1385,7 +1385,7 @@
+ return;
+
+ M_EnterMenu (m_load);
+- M_ScanSaves (!file_from_gamedir ? "qw" : com_gamedir);
++ M_ScanSaves (com_gamedir);
+ }
+
+ void M_Menu_Save_f (void) {
+@@ -1443,7 +1443,7 @@
+
+ // issue the load command
+ if (FS_LoadHunkFile ("spprogs.dat") && !file_from_gamedir)
+- Cbuf_AddText("disconnect; gamedir qw\n");
++ Cbuf_AddText("disconnect\n");
+ Cbuf_AddText (va ("load s%i\n", load_cursor) );
+ return;
+
+@@ -2209,7 +2209,7 @@
+ return;
+ }
+ #else
+- if (!(d = opendir(va("%s%s", com_basedir, demo_currentdir)))) {
++ if (!(d = opendir(va("%s/%s", com_gamedir, demo_currentdir)))) {
+ demolist_data[demolist_count].name = strdup ("Error reading directory");
+ demolist_data[demolist_count].type = dt_msg;
+ demolist_count++;
+@@ -2315,7 +2315,7 @@
+ *s = 0;
+ }
+ } else {
+- strcpy(demo_currentdir, "/qw");
++ strcpy(demo_currentdir, com_gamedir);
+ }
+ }
+