some fixes

This commit is contained in:
Walter Julius Hennecke 2013-05-27 23:42:00 +02:00
parent b7a53555ca
commit fd844d0416

View file

@ -22,13 +22,15 @@ EG "WP_5 | WP_14" etc
(Don't forget the spaces!)
*/
void Use_Target_Give( gentity_t *ent, gentity_t *other, gentity_t *activator ) {
int i;
playerState_t *ps = &activator->client->ps;
unsigned i;
playerState_t* ps;
if ( !activator || !activator->client ) {
if ( activator == NULL || activator->client == NULL ) {
return;
}
ps = &activator->client->ps;
for ( i=0; i < MAX_WEAPONS; i++ )
{
if ( (unsigned int)(ent->s.time) & (1 << i) )