adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-wastesedge-commits] Release_0-3-1 d6345fa 228/237: REMOVED au


From: Kai Sterker
Subject: [adonthell-wastesedge-commits] Release_0-3-1 d6345fa 228/237: REMOVED audio schedule for the extro
Date: Mon, 25 Jul 2016 18:15:15 +0000 (UTC)

tag: Release_0-3-1
commit d6345faaa15d96f6697668ddaccc43f27633c9a2
Author: adondev <adondev>
Commit: adondev <adondev>

    REMOVED audio schedule for the extro
---
 scripts/schedules/audio/Makefile.am |    2 +-
 scripts/schedules/audio/extro.py    |   35 -----------------------------------
 2 files changed, 1 insertion(+), 36 deletions(-)

diff --git a/scripts/schedules/audio/Makefile.am 
b/scripts/schedules/audio/Makefile.am
index 01a1d17..d6b598b 100644
--- a/scripts/schedules/audio/Makefile.am
+++ b/scripts/schedules/audio/Makefile.am
@@ -2,7 +2,7 @@ pkgdatadir = $(gamedatadir)/scripts/schedules/audio
 
 pkgdata_DATA = *.pyc
 
-EXTRA_DIST = in_game.py extro.py
+EXTRA_DIST = in_game.py
 
 all:
        $(adonthell_binary) -c
diff --git a/scripts/schedules/audio/extro.py b/scripts/schedules/audio/extro.py
deleted file mode 100644
index d554dc4..0000000
--- a/scripts/schedules/audio/extro.py
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-#  $Id$
-#
-#  (C) Copyright 2002 Kai Sterker <address@hidden>
-#  Part of the Adonthell Project http://adonthell.linuxgames.com
-#
-#  This program is free software; you can redistribute it and/or modify
-#  it under the terms of the GNU General Public License.
-#  This program is distributed in the hope that it will be useful,
-#  but WITHOUT ANY WARRANTY.
-#
-#  See the COPYING file for more details
-#
-
-# -- Schedule for the in game music
-
-import adonthell
-
-class extro:
-    def __init__ (self):
-        adonthell.gamedata_get_quest ("demo").set_val ("music", 0)
-
-    # -- method called everytime a song has finished playing
-    #    load song before playing, as the mixer seems to discard it
-    #    after it's been played once
-    def music_finished (self, song):
-        music = adonthell.gamedata_get_quest ("demo").get_val ("music")
-        
-        if music == 0:
-            adonthell.audio_load_background (0, "audio/at-demo-9.ogg")
-            adonthell.audio_play_background (0)
-            
-        else:
-            adonthell.audio_load_background (2, "audio/at-demo-2.ogg")
-            adonthell.audio_play_background (2)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]