e6bb9c3617
Fix breakage caused by dropping src/ from WRKSRC (hi rillig!).
22 lines
692 B
Text
22 lines
692 B
Text
$NetBSD: patch-ak,v 1.2 2006/07/07 20:02:09 dillo Exp $
|
|
|
|
--- src/sound/sound.cpp.orig 2003-01-16 22:39:08.000000000 +0100
|
|
+++ src/sound/sound.cpp
|
|
@@ -204,7 +204,7 @@ int load_waves()
|
|
sprintf(filename, "sound/%s", g_game->get_sound_name(i));
|
|
|
|
// if loading of the wave failed...
|
|
- mixwave[i] = Mix_LoadWAV(filename);
|
|
+ mixwave[i] = Mix_LoadWAV(find_data_file(filename));
|
|
if (!mixwave[i])
|
|
{
|
|
fprintf(stderr, "Can't find file %s\n", filename);
|
|
@@ -215,7 +215,7 @@ int load_waves()
|
|
}
|
|
|
|
// load "saveme" sound in
|
|
- mixwave_saveme = Mix_LoadWAV("sound/saveme.wav");
|
|
+ mixwave_saveme = Mix_LoadWAV(find_data_file("sound/saveme.wav"));
|
|
if (!mixwave_saveme)
|
|
{
|
|
result = 0;
|