remove server compability code for 1.11.12
This commit is contained in:
parent
147a014a7b
commit
00b191cc4b
1 changed files with 0 additions and 10 deletions
|
@ -946,16 +946,6 @@ bool game::process_turn(simple_wml::document& data, const player_map::const_iter
|
||||||
for(std::vector<int>::const_iterator j = marked.begin(); j != marked.end(); ++j) {
|
for(std::vector<int>::const_iterator j = marked.begin(); j != marked.end(); ++j) {
|
||||||
turn->remove_child("command",*j);
|
turn->remove_child("command",*j);
|
||||||
}
|
}
|
||||||
for (command = commands.begin(); command != commands.end(); ++command) {
|
|
||||||
if (simple_wml::node* attack = (**command).child("attack")) {
|
|
||||||
int seed = rand() & 0x7FFFFFFF;
|
|
||||||
attack->set_attr_int("seed", seed);
|
|
||||||
simple_wml::document doc;
|
|
||||||
simple_wml::node& rs = doc.root().add_child("random_seed");
|
|
||||||
rs.set_attr_int("seed", seed);
|
|
||||||
wesnothd::send_to_one(doc, user->first, "game replay");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (turn->no_children()) {
|
if (turn->no_children()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue