1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

* minor bugfixes

This commit is contained in:
Michał W. Urbańczyk 2007-10-22 16:41:53 +00:00
parent 76919a6e39
commit a5664e408a
2 changed files with 3 additions and 8 deletions

View File

@ -580,10 +580,9 @@ CMinimap::CMinimap(bool draw)
radar = newSurface(rx,ry);
temps = newSurface(144,144);
SDL_FillRect(radar,NULL,0x00FFFF);
SDL_SaveBMP(radar,"radar1.bmp");
for (int i=0; i<radar->w; i++)
{
if (i%3)
if (i%4 || (i==0))
{
SDL_PutPixel(radar,i,0,255,75,125);
SDL_PutPixel(radar,i,radar->h-1,255,75,125);
@ -597,10 +596,7 @@ CMinimap::CMinimap(bool draw)
SDL_PutPixel(radar,radar->w-1,i,255,75,125);
}
}
SDL_SaveBMP(radar,"radar2.bmp");
SDL_SetColorKey(radar,SDL_SRCCOLORKEY,SDL_MapRGB(radar->format,0,255,255));
SDL_SaveBMP(radar,"radar3.bmp");
SDL_SetColorKey(radar,SDL_SRCCOLORKEY,SDL_MapRGB(radar->format,0,255,255));
//radar = CGI->spriteh->giveDef("RADAR.DEF");
std::ifstream is("config/minimap.txt",std::ifstream::in);

View File

@ -124,10 +124,9 @@ bool CCallback::moveHero(int ID, CPath * path, int idtype, int pathType)
{
if(j->second.fogOfWarMap[stpos.x-1][stpos.y][stpos.z] || j->second.fogOfWarMap[endpos.x-1][endpos.y][endpos.z])
{ //player should be notified
CGI->playerint[nn]->heroMoved(curd);
CGI->playerint[j->first]->heroMoved(curd);
}
++nn;
break; //for testing only
}
}
else