mirror of
https://github.com/glest/glest-source.git
synced 2025-08-15 04:43: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 *
|
||||||
unit = world->findUnitById(unitId);
|
unit = world->findUnitById(unitId);
|
||||||
if (unit != NULL) {
|
if (unit != NULL) {
|
||||||
// Make sure they die
|
|
||||||
bool unit_dead = unit->decHp(unit->getHp() * unit->getHp());
|
|
||||||
unit->kill();
|
unit->kill();
|
||||||
// If called from an existing die event we get a stack overflow
|
// If called from an existing die event we get a stack overflow
|
||||||
//onUnitDied(unit);
|
//onUnitDied(unit);
|
||||||
|
@@ -1465,6 +1465,8 @@ namespace Game {
|
|||||||
} else {
|
} else {
|
||||||
if (throwOnError)
|
if (throwOnError)
|
||||||
throw game_runtime_error("Invalid position command: " + commandName, true);
|
throw game_runtime_error("Invalid position command: " + commandName, true);
|
||||||
|
else
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unit->getType()->getFirstCtOfClass(cc) == NULL) {
|
if (unit->getType()->getFirstCtOfClass(cc) == NULL) {
|
||||||
|
Reference in New Issue
Block a user