pkgsrc/games/clanbomber/patches/patch-aa

31 lines
654 B
Text

$NetBSD: patch-aa,v 1.2 2001/01/04 01:08:58 wiz Exp $
--- clanbomber/Resources.cpp.orig Tue Mar 28 17:04:30 2000
+++ clanbomber/Resources.cpp
@@ -24,6 +24,7 @@
#include <ClanLib/Core/Sound/soundbuffer.h>
#include "Resources.h"
+#include <config.h>
CL_ResourceManager* Resources::res = NULL;
@@ -110,8 +111,7 @@
try
{
res = CL_ResourceManager::create(
- "/usr/share/clanbomber/clanbomber.dat",
- true);
+ BOMBERDATDIR, true);
}
catch (CL_Error err)
{
@@ -149,7 +149,7 @@
{
if (!sur_titlescreen)
{
- if (rand()%2)
+ if (random()%2)
{
sur_titlescreen = CL_Surface::load("Titlescreen/andi", res);
}