Make the AI print out the walls not the map.
Don’t worry I wasn’t doing this all afternoon I had a spare 5 minutes whilst waiting for some .DAT files to md5. =P
This commit is contained in:
parent
1c97177956
commit
a0ff8680a3
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
Reference in a new issue