made it so shroud displays properly on the minimap

This commit is contained in:
Dave White 2003-11-05 18:07:07 +00:00
parent 7b73f5fe74
commit 7ed74d6830
2 changed files with 8 additions and 2 deletions

View file

@ -1663,7 +1663,9 @@ SDL_Surface* display::getMinimap(int w, int h)
SDL_Rect minirect = {0,0,scale,scale};
for(int y = 0; y != map_.y(); ++y) {
for(int x = 0; x != map_.x(); ++x) {
if(map_.on_board(gamemap::location(x,y))) {
const bool shrouded = team_valid() &&
teams_[currentTeam_].shrouded(x,y);
if(map_.on_board(gamemap::location(x,y)) && !shrouded) {
const gamemap::TERRAIN terrain = map_[x][y];
cache_map::iterator i = cache.find(terrain);

View file

@ -14,7 +14,7 @@
//from platform to platform, since these functions are NOT ANSI-conforming
//functions. They may have to be altered to port to new platforms
#include <sys/types.h>
#include <dirent.h>
//for mkdir
#include <sys/stat.h>
@ -30,6 +30,10 @@
#define mode_t int
#else
#include <dirent.h>
#endif
//for getenv