return TRUE;
} else {
// only some of the needed keys were given
- l.itemkeys &~= valid;
+ l.itemkeys &= ~valid;
return TRUE;
}
}
* Key touch handler.
*/
void item_key_touch(void) {
- if (other.classname != "player")
+ if not(IS_PLAYER(other))
return;
// player already picked up this key
started_delay = FALSE;
// only player may trigger the lock
- if (other.classname != "player")
+ if not(IS_PLAYER(other))
return;