aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index ebeabd4..62cd87a 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1069,6 +1069,12 @@ void logic(){
case MS_BIRD:
m->wander((rand()%240 + 15)); // Make the mob wander :)
break;
+ case MS_TRIGGER:
+ m->wander(0);
+ break;
+ default:
+ std::cout<<"Unhandled mob of subtype "<<m->subtype<<"."<<std::endl;
+ break;
}
}
}
@@ -1084,7 +1090,6 @@ void logic(){
*/
if(SDL_GetMouseState(NULL, NULL) & SDL_BUTTON(SDL_BUTTON_RIGHT)){
- std::cout << "Picking up!\n";
o->interact();
}
}