mirror of
https://github.com/glest/glest-source.git
synced 2025-08-14 04:13:58 +02:00
Merge branch 'develop' of https://github.com/Glest/glest-source into develop
This commit is contained in:
@@ -1757,8 +1757,6 @@ namespace Game {
|
||||
Unit *
|
||||
unit = world->findUnitById(unitId);
|
||||
if (unit != NULL) {
|
||||
// Make sure they die
|
||||
bool unit_dead = unit->decHp(unit->getHp() * unit->getHp());
|
||||
unit->kill();
|
||||
// If called from an existing die event we get a stack overflow
|
||||
//onUnitDied(unit);
|
||||
|
@@ -1465,6 +1465,8 @@ namespace Game {
|
||||
} else {
|
||||
if (throwOnError)
|
||||
throw game_runtime_error("Invalid position command: " + commandName, true);
|
||||
else
|
||||
return;
|
||||
}
|
||||
|
||||
if (unit->getType()->getFirstCtOfClass(cc) == NULL) {
|
||||
|
Reference in New Issue
Block a user