Uninlined display::fog_image.

This commit is contained in:
Guillaume Melquiond 2010-05-28 06:15:10 +00:00
parent 665843fe11
commit 1dab05b572
2 changed files with 10 additions and 8 deletions

View file

@ -145,6 +145,15 @@ display::~display()
{
}
std::string display::fog_image(const map_location &loc)
{
std::ostringstream tmp;
tmp << fog_image_;
tmp << (loc.x + loc.y) % 3 + 1;
tmp << ".png";
return tmp.str();
}
void display::rebuild_all()
{
builder_->rebuild_all();

View file

@ -33,7 +33,6 @@
#ifndef DISPLAY_H_INCLUDED
#define DISPLAY_H_INCLUDED
#include <sstream>
class config;
class terrain_builder;
class map_labels;
@ -565,13 +564,7 @@ protected:
void scroll_to_xy(int screenxpos, int screenypos, SCROLL_TYPE scroll_type,bool force = true);
std::string fog_image(const map_location & loc){
std::stringstream tmp;
tmp << fog_image_;
tmp << (loc.x+loc.y)%3 +1;
tmp << ".png";
return tmp.str();
}
std::string fog_image(const map_location &loc);
CVideo& screen_;
const gamemap* map_;