mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 09:53:38 +02:00
Incomp. Proto. Change: Maintain sync by prefixing client commands by tick id
This commit is contained in:
parent
091708f577
commit
9baf771807
5 changed files with 29 additions and 15 deletions
|
@ -116,9 +116,9 @@ sub take_action($$) {
|
|||
print "moves ".join(", ", @move)." => (".dirindex($max).":$max->[0],$max->[1])\n";
|
||||
|
||||
if ($attack[dirindex($max)]) {
|
||||
print $socket "attack_dir $max->[0] $max->[1] 100\r\n";
|
||||
print $socket $state->{tick}." attack_dir $max->[0] $max->[1] 100\r\n";
|
||||
} else {
|
||||
print $socket "move_dir $max->[0] $max->[1]\r\n";
|
||||
print $socket $state->{tick}." move_dir $max->[0] $max->[1]\r\n";
|
||||
}
|
||||
print $socket "secrete 65536 1\r\n";
|
||||
print $socket "\r\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue