MantisBT - VCMI
View Issue Details
0002325VCMIRandom Map Generatorpublic2015-11-13 09:342015-11-13 09:34
AVS 
Warmonger 
normalminoralways
assignedopen 
0.98e 
 
0002325: 2-player map generates with 4 teams
Template Upgrade has 2 players but map generated with 4 teams. also both players are CPU only.


CMapGenOptions opt;

opt.setHeight(CMapHeader::MAP_SIZE_SMALL);
opt.setWidth(CMapHeader::MAP_SIZE_SMALL);
opt.setHasTwoLevels(true);
opt.setPlayerCount(2);

CMapGenerator gen;

initialMap = gen.generate(&opt, TEST_RANDOM_SEED);
initialMap->name = "Test";
from log:
"RMG settings: players 2, teams -1, computer players -1, computer teams -1, water -1, monsters -2
Final player config: 2 total, 2 cpu-only"

from map:
"Template was Upgrade, Random seed was 1337, size 36x36, levels 2, players 2, computers 2, water none, monster normal,"
No tags attached.
zip test.zip (5,558) 2015-11-13 09:34
https://bugs.vcmi.eu/file_download.php?file_id=2393&type=bug
Issue History
2015-11-13 09:34AVSNew Issue
2015-11-13 09:34AVSStatusnew => assigned
2015-11-13 09:34AVSAssigned To => Warmonger
2015-11-13 09:34AVSFile Added: test.zip

There are no notes attached to this issue.