aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-11-17 08:38:51 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-11-17 08:38:51 -0500
commitfcf3e396c57b285b621624f63f9acd6515c58ef9 (patch)
tree03969def5fbea60e9003e56c94ccca1492eebe26 /main.cpp
parent20b29fccb6da62d5a07a02477fabac3a80d350dd (diff)
cutscenes, arenas
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();
}
}