{
// Quake 1 and QL keys compatibility
if (this.spawnflags & SPAWNFLAGS_GOLD_KEY)
- this.itemkeys |= ITEM_KEY_BIT(0);
+ this.itemkeys |= BIT(0);
if (this.spawnflags & SPAWNFLAGS_SILVER_KEY)
- this.itemkeys |= ITEM_KEY_BIT(1);
+ this.itemkeys |= BIT(1);
SetMovedir(this);
// find default model
string _model = string_null;
- if (this.itemkeys <= ITEM_KEY_BIT(2) || this.itemkeys == 0xffffff) {
+ if (this.itemkeys <= BIT(2) || this.itemkeys == 0xffffff) {
_model = "models/keys/key.md3";
- } else if (this.itemkeys >= ITEM_KEY_BIT(3) && this.itemkeys <= ITEM_KEY_BIT(5)) {
+ } else if (this.itemkeys >= BIT(3) && this.itemkeys <= BIT(5)) {
_model = "models/keys/key.md3"; // FIXME: replace it by a keycard model!
} else if (this.model == "") {
objerror(this, "item_key doesn't have a default model for this key and a custom one was not specified!");
*/
spawnfunc(item_key1)
{
- this.itemkeys = ITEM_KEY_BIT(1);
+ this.itemkeys = BIT(1);
spawnfunc_item_key(this);
}
*/
spawnfunc(item_key2)
{
- this.itemkeys = ITEM_KEY_BIT(0);
+ this.itemkeys = BIT(0);
spawnfunc_item_key(this);
}