[planetblupi] 04/13: Revert "Add an argument to look for music only in the base location"

Didier Raboud odyx at moszumanska.debian.org
Tue Feb 6 19:50:09 UTC 2018


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

odyx pushed a commit to branch debian/master
in repository planetblupi.

commit e52704d937768169d19748de6f46ef581c27a782
Author: Mathieu Schroeter <mathieu at schroetersa.ch>
Date:   Wed Jan 31 07:20:31 2018 +0100

    Revert "Add an argument to look for music only in the base location"
    
    This reverts commit ce0fe82a02c0334a068bd2b78fa1f92e81680806.
    
    It's not very useful..
---
 src/event.cxx |  5 +----
 src/event.h   | 23 +++++++++++------------
 2 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/src/event.cxx b/src/event.cxx
index d40042b..e9fe135 100644
--- a/src/event.cxx
+++ b/src/event.cxx
@@ -3066,7 +3066,7 @@ CEvent::IsHelpHide ()
 }
 
 std::string
-CEvent::GetMusicLocation (Sint32 music, std::string & format, bool onlyBase)
+CEvent::GetMusicLocation (Sint32 music, std::string & format)
 {
   static const std::string exts[] = {"ogg", "mid"};
   static const Location    locs[] = {LOCATION_USER, LOCATION_BASE};
@@ -3077,9 +3077,6 @@ CEvent::GetMusicLocation (Sint32 music, std::string & format, bool onlyBase)
   // Look for music in the user directory, then in the game directory.
   for (size_t i = 0; i < countof (locs); ++i)
   {
-    if (onlyBase && locs[i] != LOCATION_BASE)
-      continue;
-
     format = exts[g_restoreMidi ? 1 : 0];
     auto filename =
       string_format ("music/music%.3d.%s", music - 1, format.c_str ());
diff --git a/src/event.h b/src/event.h
index 02dbbb9..3ca7b03 100644
--- a/src/event.h
+++ b/src/event.h
@@ -94,18 +94,17 @@ public:
 
   Point GetMousePos ();
   void
-         Create (CPixmap * pPixmap, CDecor * pDecor, CSound * pSound, CMovie * pMovie);
-  void   SetFullScreen (bool bFullScreen);
-  Sint32 GetWorld ();
-  Sint32 GetPhysicalWorld ();
-  Sint32 GetImageWorld ();
-  bool   IsHelpHide ();
-  std::string
-         GetMusicLocation (Sint32 music, std::string & format, bool onlyBase = false);
-  bool   ChangePhase (Uint32 phase);
-  bool   MovieToStart ();
-  Uint32 GetPhase ();
-  void   TryInsert ();
+              Create (CPixmap * pPixmap, CDecor * pDecor, CSound * pSound, CMovie * pMovie);
+  void        SetFullScreen (bool bFullScreen);
+  Sint32      GetWorld ();
+  Sint32      GetPhysicalWorld ();
+  Sint32      GetImageWorld ();
+  bool        IsHelpHide ();
+  std::string GetMusicLocation (Sint32 music, std::string & format);
+  bool        ChangePhase (Uint32 phase);
+  bool        MovieToStart ();
+  Uint32      GetPhase ();
+  void        TryInsert ();
 
   Sint32 GetButtonIndex (Sint32 button);
   Sint32 GetState (Sint32 button);

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



More information about the Pkg-games-commits mailing list