1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* CLodHandler now stories entries in nodrze (much faster searching)

* CLodHandler init cleared up (a bit)
* giveDef optimized
* horizontal slider
* printAtMiddle updates corrrect rect
* adjusted shadows
* parts of advanced options menu 
* minor fixes/improvements
This commit is contained in:
Michał W. Urbańczyk
2007-07-17 20:51:49 +00:00
parent 66ba3d0eab
commit db65d9ee15
13 changed files with 151 additions and 57 deletions

2
map.h
View File

@@ -218,7 +218,7 @@ public:
CMapInfo(std::string fname, unsigned char *map):CMapHeader(map),filename(fname)
{
playerAmnt=humenPlayers=0;
for (int i=0;i<8;i++)
for (int i=0;i<PLAYER_LIMIT;i++)
{
if (players[i].canHumanPlay) {playerAmnt++;humenPlayers++;}
else if (players[i].canComputerPlay) {playerAmnt++;}