2
0
Эх сурвалжийг харах

Build boat in allied shipyards is allowed now

Andrii Danylchenko 7 жил өмнө
parent
commit
9a36572446

+ 3 - 1
server/NetPacksServer.cpp

@@ -272,7 +272,9 @@ bool HireHero::applyGh(CGameHandler * gh)
 
 bool BuildBoat::applyGh(CGameHandler * gh)
 {
-	throwOnWrongOwner(gh, objid);
+	if(gh->getPlayerRelations(gh->getOwner(objid), gh->getPlayerAt(c)) == PlayerRelations::ENEMIES)
+		throwAndCompain(gh, "Can't build boat at enemy shipyard");
+
 	return gh->buildBoat(objid);
 }