View Single Post
Old 02-24-2008, 07:52 PM   #204
JediDog
Rookie
 
JediDog's Avatar
 
Join Date: Jan 2008
Location: Florida
Posts: 16
forcepowers crash

Quote:
Originally Posted by =X=Master HeX
in w_force.c & g_client.c, look for:
Code:
	Q_strncpyz( forcePowers, Info_ValueForKey (userinfo, "forcepowers"), sizeof( forcePowers ) );
replace with:
Code:
	if (!(ent->r.svFlags & SVF_BOT))
	{
		char *s;
		s = Info_ValueForKey (userinfo, "forcepowers");
		FR_NormalizeForcePowers(s, strlen(s));
		strcpy( forcePowers, s );
	}
	else
	{
		Q_strncpyz( forcePowers, Info_ValueForKey (userinfo, "forcepowers"), sizeof( forcePowers ) );
	}
Why did you add it in both places?
You only need it in one, did it just in case? I believe if you do it in userinfo it prevents it from being changed to it and in w_force.c it changes to it but it doesn't process it. (i think)
I'm only curious.
JediDog is offline   you may: quote & reply,