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-861f7616d084master
parent
0c19402d8b
commit
0ca00ffa44
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue