Merge branch 'net' of https://github.com/mdiluz/ttrts into net
This commit is contained in:
commit
25e0fa04de
1 changed files with 7 additions and 0 deletions
|
@ -238,6 +238,13 @@ sub PrintGameFromGamestateString
|
|||
$map[$invalidPos[0]][$invalidPos[1]] = "~";
|
||||
}
|
||||
|
||||
# Fill with walls
|
||||
foreach my $wall ( $info[8] =~ /\[(\d+,\d+)\]/g )
|
||||
{
|
||||
$wall =~ /(\d+),(\d+)/;
|
||||
$map[$1][$2] = "|";
|
||||
}
|
||||
|
||||
# Fill with units
|
||||
for my $unit (@units)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue