1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

little change for gcc

This commit is contained in:
Łukasz Wychrystenko
2008-12-18 08:04:53 +00:00
parent ea6fc75436
commit c1239b3d29

View File

@@ -73,9 +73,8 @@ std::string nameFromType (int typ)
} }
return std::string(); return std::string();
} }
class OCM_HLP struct OCM_HLP
{ {
public:
bool operator ()(const std::pair<const CGObjectInstance*, SDL_Rect> & a, const std::pair<const CGObjectInstance*, SDL_Rect> & b) bool operator ()(const std::pair<const CGObjectInstance*, SDL_Rect> & a, const std::pair<const CGObjectInstance*, SDL_Rect> & b)
{ {
return (*a.first)<(*b.first); return (*a.first)<(*b.first);
@@ -198,9 +197,9 @@ void CMapHandler::roadsRiverTerrainInit()
for (int i=0; i<map->width; i++) //jest po szeroko�ci for (int i=0; i<map->width; i++) //jest po szeroko�ci
{ {
for (int j=0; j<map->height;j++) //po wysoko�ci for (int j=0; j<map->height;j++) //po wysoko�ci
{ {
for (int k=0; k<=map->twoLevel; ++k) for (int k=0; k<=map->twoLevel; ++k)
{ {
@@ -238,9 +237,9 @@ void CMapHandler::roadsRiverTerrainInit()
} }
} }
for (int i=0; i<map->width; i++) //jest po szeroko�ci for (int i=0; i<map->width; i++) //jest po szeroko�ci
{ {
for (int j=0; j<map->height;j++) //po wysoko�ci for (int j=0; j<map->height;j++) //po wysoko�ci
{ {
for(int k=0; k<=map->twoLevel; ++k) for(int k=0; k<=map->twoLevel; ++k)
{ {
@@ -286,9 +285,9 @@ void CMapHandler::borderAndTerrainBitmapInit()
delete hlp; delete hlp;
} }
for (int i=0-Woff; i<map->width+Woff; i++) //jest po szeroko�ci for (int i=0-Woff; i<map->width+Woff; i++) //jest po szeroko�ci
{ {
for (int j=0-Hoff; j<map->height+Hoff;j++) //po wysoko�ci for (int j=0-Hoff; j<map->height+Hoff;j++) //po wysoko�ci
{ {
for(int k=0; k<=map->twoLevel; ++k) for(int k=0; k<=map->twoLevel; ++k)
{ {