Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void beep()
- {
- bool dosfx = false;
- if ( Screen->HasItem )
- {
- itemdata id = Game->LoadItemData(Screen->item);
- switch(id->Family)
- {
- case IT_KEY: dosfx = true; break;
- case IT_LKEY: dosfx = true; break;
- case IT_BOSSKEY: dosfx = true; break;
- default: break;
- }
- if ( dosfx ) Game->PlaySound(SFX_BEEP);
- }
- }
Add Comment
Please, Sign In to add comment