When cheating droids with ctrl+o menu, notify AI scripts about it so that they can assign jobs to this new droid.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10348 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2010-03-18 10:35:39 +00:00 committed by Git SVN Gateway
parent 0c19402d8b
commit 0ca00ffa44
1 changed files with 4 additions and 0 deletions

View File

@ -2211,6 +2211,10 @@ INT_RETVAL intRunWidgets(void)
sasprintf((char**)&msg, _("Player %u is cheating (debug menu) him/herself a new droid: %s."), selectedPlayer, psDroid->aName);
sendTextMessage(msg, true);
Cheated = true;
psScrCBNewDroid = psDroid;
psScrCBNewDroidFact = NULL;
eventFireCallbackTrigger((TRIGGER_TYPE)CALL_NEWDROID); // notify scripts so it will get assigned jobs
psScrCBNewDroid = NULL;
}
}
editPosMode = IED_NOPOS;