X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fyeti.cpp;h=1c039068e459d39655fe99e5509964d354e5e3dd;hb=013a5ca196545a094f27c1b708facd0084d58d55;hp=5578d0d71f4abcb5a0a944d36715370e2b979ad7;hpb=e5f99ba473f018fa9185385d96ebff0efcb2c925;p=supertux.git diff --git a/src/badguy/yeti.cpp b/src/badguy/yeti.cpp index 5578d0d71..1c039068e 100644 --- a/src/badguy/yeti.cpp +++ b/src/badguy/yeti.cpp @@ -60,7 +60,6 @@ Yeti::Yeti(const lisp::Lisp& reader) sound_manager->preload("sounds/yeti_gna.wav"); sound_manager->preload("sounds/yeti_roar.wav"); hud_head.reset(new Surface("images/creatures/yeti/hudlife.png")); - draw_dead_script_hint = false; } Yeti::~Yeti() @@ -68,7 +67,7 @@ Yeti::~Yeti() } void -Yeti::activate() +Yeti::initialize() { dir = RIGHT; jump_down(); @@ -220,7 +219,7 @@ void Yeti::take_hit(Player& ) state = SQUISHED; state_timer.start(SQUISH_TIME); - set_group(COLGROUP_MOVING_ONLY_STATIC); + set_colgroup_active(COLGROUP_MOVING_ONLY_STATIC); sprite->set_action("dead"); if (countMe) Sector::current()->get_level()->stats.badguys++; @@ -239,7 +238,7 @@ void Yeti::kill_fall() { // shooting bullets or being invincible won't work :) - take_hit(*get_nearest_player()); // FIXME: debug only(?) + //take_hit(*get_nearest_player()); // FIXME: debug only(?) } void