freebsd-ports/games/rubix/files/patch-ad
Kevin Lo f625b70e83 Upgrade to 1.0.2
PR: 23829
Submitted by: Ports Fury
2000-12-26 15:14:32 +00:00

22 lines
686 B
Text

--- main.c.orig Fri Dec 10 01:59:09 1999
+++ main.c Sat Dec 23 13:37:46 2000
@@ -54,6 +54,10 @@
CUBE cube;
int i;
int rand=1;
+ char full_module_file[4096];
+ char *module_file = "module.xm";
+ strcpy(full_module_file, MODULE_PATH "/");
+ strcat(full_module_file, module_file);
the_screen=&screen.buffer[0];
d.buffer=screen.buffer;
@@ -81,7 +85,7 @@
}
if (do_init_sound)
- if (rubick_init_sound(&sound, "module.xm")==-1) {
+ if (rubick_init_sound(&sound, full_module_file)==-1) {
fprintf(stderr, "Error with initing the sound, sorry pal, no sound no game.\n(I fucked my head with"
" an xm player, this is not for nothing !)\n");
return 0;