--- a/hedgewars/uFLTeams.pas Sat Nov 01 00:23:22 2014 +0300
+++ b/hedgewars/uFLTeams.pas Sat Nov 01 22:51:07 2014 +0300
@@ -11,7 +11,7 @@
function teamByName(s: shortstring): PTeam;
implementation
-uses uFLUtils, uFLIPC, uPhysFSLayer;
+uses uFLUtils, uFLIPC, uPhysFSLayer, uFLData;
const MAX_TEAM_NAMES = 128;
var
@@ -47,7 +47,7 @@
begin
with team do
begin
- ipcToEngine('eaddteam <hash> ' + color + ' ' + teamName);
+ ipcToEngine('eaddteam <hash> ' + colorsSet[color] + ' ' + teamName);
for i:= 0 to Pred(hogsNumber) do
begin
ipcToEngine('eaddhh ' + inttostr(botLevel) + ' 100 ' + hedgehogs[i].name);