[game-data-packager] 01/01: doom2-masterlevels: user need to select a level before starting the game

Alexandre Detiste detiste-guest at moszumanska.debian.org
Tue Mar 31 10:26:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 661ea685100728edd6651cb89468ee3cbc0bb9ec
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Tue Mar 31 12:24:22 2015 +0200

    doom2-masterlevels: user need to select a level before starting the game
    
    button1 should be at first greyed-out and the set
    unconditionally back to normal in select_game()
---
 runtime/doom2-masterlevels.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/runtime/doom2-masterlevels.py b/runtime/doom2-masterlevels.py
index f585fe6..45149ed 100755
--- a/runtime/doom2-masterlevels.py
+++ b/runtime/doom2-masterlevels.py
@@ -197,8 +197,9 @@ def run_game(event):
     if 'doomsday' in engine:
         engine = 'doomsday -game doom2'
 
-    subprocess.call([engine, '-file', '/usr/share/games/doom/%s.wad' % game,
-        '-warp', '%d' % warp, '-skill', difficulty])
+    if warp:
+        subprocess.call([engine, '-file', '/usr/share/games/doom/%s.wad' % game,
+            '-warp', '%d' % warp, '-skill', difficulty])
 
 treeview.connect("cursor-changed", select_game)
 button1.connect("clicked", run_game)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list