Laserlicht 1 рік тому
батько
коміт
6273e678a4
2 змінених файлів з 3 додано та 1 видалено
  1. 2 0
      server/CVCMIServer.cpp
  2. 1 1
      test/game/CGameStateTest.cpp

+ 2 - 0
server/CVCMIServer.cpp

@@ -624,6 +624,8 @@ void CVCMIServer::updateStartInfoOnMapChange(std::shared_ptr<CMapInfo> mapInfo,
 				pset.heroNameTextId = pinfo.mainCustomHeroNameTextId;
 				pset.heroNameTextId = pinfo.mainCustomHeroNameTextId;
 				pset.heroPortrait = pinfo.mainCustomHeroPortrait;
 				pset.heroPortrait = pinfo.mainCustomHeroPortrait;
 			}
 			}
+
+			pset.handicapLegacy = PlayerSettings::NO_HANDICAP;
 		}
 		}
 
 
 		if(mi->isRandomMap && mapGenOpts)
 		if(mi->isRandomMap && mapGenOpts)

+ 1 - 1
test/game/CGameStateTest.cpp

@@ -176,7 +176,7 @@ public:
 				pset.heroPortrait = HeroTypeID(pinfo.mainCustomHeroPortrait);
 				pset.heroPortrait = HeroTypeID(pinfo.mainCustomHeroPortrait);
 			}
 			}
 
 
-			pset.handicap = PlayerSettings::NO_HANDICAP;
+			pset.handicapLegacy = PlayerSettings::NO_HANDICAP;
 		}
 		}