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

* Server will strictly require answering the queries before taking any actions. Let me know, if this causes any freezes.

* Fixed crash on new week after we lost battle with neutral monster but killed the top stack (merging failed then).
* minor changes
This commit is contained in:
Michał W. Urbańczyk
2011-09-06 06:00:32 +00:00
parent 5fff82a3d2
commit 8b7a2f179c
9 changed files with 37 additions and 18 deletions

View File

@@ -225,8 +225,9 @@ bool BuildBoat::applyGh( CGameHandler *gh )
bool QueryReply::applyGh( CGameHandler *gh )
{
//TODO - check if player matches the query
return gh->queryReply(qid,answer);
ERROR_IF_NOT(player);
assert(vstd::contains(gh->states.players, player));
return gh->queryReply(qid, answer, player);
}
bool MakeAction::applyGh( CGameHandler *gh )