if(!lisp.get("message", message)) {
msg_warning("No message in InfoBlock");
}
- stopped = false;
- ringing = new AmbientSound(get_pos(), 0.5, 300, 1, "sounds/phone.wav");
- Sector::current()->add_object(ringing);
+ //stopped = false;
+ //ringing = new AmbientSound(get_pos(), 0.5, 300, 1, "sounds/phone.wav");
+ //Sector::current()->add_object(ringing);
}
InfoBlock::~InfoBlock()
InfoBlock::hit(Player& )
{
start_bounce();
- if (!stopped) {
- ringing->remove_me();
- stopped = true;
- }
+ //if (!stopped) {
+ // ringing->remove_me();
+ // stopped = true;
+ //}
GameSession::current()->display_info_box(message);
}
#define __INFOBLOCK_H__
#include "block.hpp"
-#include "object/ambient_sound.hpp"
+//#include "object/ambient_sound.hpp"
class InfoBlock : public Block
{
protected:
virtual void hit(Player& player);
std::string message;
- AmbientSound* ringing;
- bool stopped;
+ //AmbientSound* ringing;
+ //bool stopped;
};
#endif