File chdoom-iwaddir.diff of Package chocolate-doom

From: Jan Engelhardt <jengelh@inai.de>
Date: 2013-05-02 09:45:54.544886176 +0200
Upstream: maybe - this patch is quite specific to openSUSE

prboom-plus and doomsday (in openSUSE) look in /usr/share/doom for
IWADs, and so should chocolate-doom.

---
 src/d_iwad.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: chocolate-doom-1.7.0/src/d_iwad.c
===================================================================
--- chocolate-doom-1.7.0.orig/src/d_iwad.c
+++ chocolate-doom-1.7.0/src/d_iwad.c
@@ -556,8 +556,9 @@ static void BuildIWADDirList(void)
 
     // Standard places where IWAD files are installed under Unix.
 
-    AddIWADDir("/usr/share/games/doom");
     AddIWADDir("/usr/local/share/games/doom");
+    AddIWADDir("/usr/share/games/doom");
+    AddIWADDir("/usr/share/doom");
 
 #endif
 
openSUSE Build Service is sponsored by