X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Felectrifier.cpp;h=f1b8c1ccdaf2c2039aa974d19ff24478bd5431e8;hb=657fc40723665c04b3150946f5bd66b6b0af9230;hp=a0e299232aaed12cb5f33af94e5cc5766b75d39e;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/object/electrifier.cpp b/src/object/electrifier.cpp index a0e299232..f1b8c1ccd 100644 --- a/src/object/electrifier.cpp +++ b/src/object/electrifier.cpp @@ -29,22 +29,22 @@ Electrifier::Electrifier(uint32_t oldtile, uint32_t newtile, float seconds) duration.start(seconds); change_from = oldtile; change_to = newtile; - Sector::current()->solids->change_all(change_from,change_to); + Sector::current()->change_solid_tiles(change_from,change_to); } - + Electrifier::~Electrifier() { } void -Electrifier::update(float ) +Electrifier::update(float ) { if (duration.check()) { - Sector::current()->solids->change_all(change_to,change_from); + Sector::current()->change_solid_tiles(change_to,change_from); remove_me(); } } void -Electrifier::draw(DrawingContext& ) +Electrifier::draw(DrawingContext& ) { }