freebsd-ports/games/quake2-3zb2/files/patch-bot_func.c
Alejandro Pulver 48901ec1b7 - Fix undefined references in library (previously it could only be used with
"games/qudos" and "games/kmquake2", because they build a modified version).
- Install node files with appropiate permissions.
- Add an entry in pkg-message about permissions.
- Bump PORTREVISION.

Reported by:	Volodymyr Kostyrko <arcade@synergetica.dn.ua>
Obtained from:	http://svn.quakedev.com/viewcvs.cgi/qudos/trunk/src/mods/3zb2/
2006-12-30 23:21:53 +00:00

21 lines
569 B
C

--- ./bot_func.c.orig Sat Dec 30 19:09:03 2006
+++ ./bot_func.c Sat Dec 30 19:09:23 2006
@@ -84,8 +84,8 @@
botlist = gi.cvar ("botlist", "default", CVAR_SERVERINFO | CVAR_LATCH);
gamepath = gi.cvar ("game", "0", CVAR_NOSET);
- //load info
- sprintf(Buff,".\\%s\\3ZBconfig.cfg",gamepath->string);
+ //load info
+ sprintf(Buff,"%s/3ZBConfig.cfg",gamepath->string);
fp = fopen(Buff,"rt");
if(fp == NULL)
{
@@ -336,7 +336,6 @@
gclient_t *client;
char pinfo[200];
int index;
- int i;
index = ent-g_edicts-1;
ent->client = &game.clients[index];