1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

* Added comments to map.h * Refactoring(renamed attributes, some steps towards coding guidelines, ..)

This commit is contained in:
beegee1
2012-10-26 17:51:05 +00:00
parent 8604234f8d
commit 720deba838
16 changed files with 1364 additions and 804 deletions

View File

@@ -1048,7 +1048,7 @@ void SelectionTab::parseMaps(const std::vector<ResourceID> &files, int start, in
{
try
{
TInputStreamPtr stream(Mapa::getMapStream(files[start].getName()));
TInputStreamPtr stream(CMap::getMapStream(files[start].getName()));
int read = stream->read(mapBuffer, 1500);
if(read < 50 || !mapBuffer[4])
@@ -1360,16 +1360,16 @@ void SelectionTab::printMaps(SDL_Surface *to)
int temp=-1;
switch (currentItem->mapHeader->version)
{
case CMapHeader::RoE:
case EMapFormat::ROE:
temp=0;
break;
case CMapHeader::AB:
case EMapFormat::AB:
temp=1;
break;
case CMapHeader::SoD:
case EMapFormat::SOD:
temp=2;
break;
case CMapHeader::WoG:
case EMapFormat::WOG:
temp=3;
break;
default: