This
patch adds a delete hotkey. Pressing it causes a dialog to appear asking you to confirm deleting the units you have selected (which could also be your ally's, come to think of it). Also, I removed a comma from the end of game dialog, added a setHp method, and stopped a gui mouse click from registering (and cancelling the current unit selection) when a dialog is present.
Before using, add "DeleteSelected=Really delete selected units?" to english.lng and "DeleteKey=vkDelete" to glestkeys.ini.
So when would you want to delete your units anyway? Not very often admittedly, but the situation does arise sometimes:
1. Units get trapped occasionally. You can command other units to attack the offending building/units, but that's a hassle.
2. A player might lose all but a handful of units or buildings, and be unable to attack his own units. He's effectively dead, so it would be nice if he could watch the rest of the game unfold with a fully revealed map, like other dead players can.
I know,
GAE has this already. I didn't look at their implementation, and I suspect it's probably better. I'm still learning C++...
Titi and softcoder don't like this feature, so I'm posting it here to see if anyone else does.