File: src_dopewars.patch

package info (click to toggle)
dopewars 1.6.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,904 kB
  • sloc: ansic: 25,187; sh: 12,336; makefile: 210; sed: 16
file content (31 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Fix default drugs, correct pathing for html help, change the web browser to /usr/bin/sensible-browser in dopewars.c.
Origin: other

--- a/src/dopewars.c
+++ b/src/dopewars.c
@@ -728,6 +728,7 @@
   {N_("Peyote"), 220, 700, FALSE, FALSE, ""},
   {N_("Shrooms"), 630, 1300, FALSE, FALSE, ""},
   {N_("Speed"), 90, 250, FALSE, TRUE, ""},
+  {N_("Viagra"), 30, 80, TRUE, FALSE, ""},
   {N_("Weed"), 315, 890, TRUE, FALSE,
    N_("Columbian freighter dusted the Coast Guard! "
       "Weed prices have bottomed out!")}
@@ -2333,7 +2334,7 @@
   path = g_strdup_printf("file://%s/doc/", bindir);
   g_free(bindir);
 #else
-  path = g_strdup_printf("file://%s/", DPDOCDIR);
+  path = g_strdup_printf("file://%s/html/", DPDOCDIR);
 #endif
   return path;
 }
@@ -2425,7 +2426,7 @@
   AssignName(&ServerName, "localhost");
   AssignName(&ServerMOTD, "");
   AssignName(&BindAddress, "");
-  AssignName(&OurWebBrowser, "/usr/bin/firefox");
+  AssignName(&OurWebBrowser, "/usr/bin/sensible-browser");
 
   AssignName(&Sounds.FightHit, SNDPATH"colt.wav");
   AssignName(&Sounds.EnemyBitchKilled, SNDPATH"shotdown.wav");