X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.cpp;h=b8b5eb629d8601a2de2ce2a4a03044df9b28fcad;hb=0b11a24a8b08c49d6e4301573602fb6d01e7a8c8;hp=9bae990ce6d72c053ce1b252a48a121cf49d0f67;hpb=0911d263c10cca314305799d5b839ee9653cac0b;p=l2e.git diff --git a/src/map/MapState.cpp b/src/map/MapState.cpp index 9bae990..b8b5eb6 100644 --- a/src/map/MapState.cpp +++ b/src/map/MapState.cpp @@ -44,6 +44,7 @@ MapState::MapState(GameConfig *g, Map *map) void MapState::OnEnterState(SDL_Surface *screen) { camera.Resize(screen->w, screen->h); + tileAnimation = GraphicsTimers().StartInterval(512); LoadMap(map); } @@ -463,7 +464,7 @@ void MapState::Render(SDL_Surface *screen) { SDL_FillRect(screen, 0, SDL_MapRGB(screen->format, 0, 0, 0)); Vector offset(camera.CalculateOffset()); - map->Render(screen, offset); + map->Render(screen, offset, tileAnimation.Iteration()); if (debug) { map->RenderDebug(screen, offset);