ovf's OCD
> ovf: krzys_h: i'm sorry, your last commit triggered a random ocd fit. http://vpaste.net/S6u62 > ovf: (you don't need to apply this, i already feel better now)master
parent
6844b2170f
commit
0ce72bdce0
|
@ -2125,17 +2125,12 @@ CObject* CRobotMain::DetectObject(Math::Point pos)
|
||||||
{
|
{
|
||||||
target = obj;
|
target = obj;
|
||||||
}
|
}
|
||||||
else if ((type == OBJECT_POWER ||
|
|
||||||
type == OBJECT_ATOMIC) &&
|
else if (type == OBJECT_POWER || type == OBJECT_ATOMIC)
|
||||||
obj->GetTruck() != nullptr) // battery used?
|
{
|
||||||
{
|
target = obj->GetTruck(); // battery connected
|
||||||
target = obj->GetTruck();
|
if (!target) target = obj; // standalone battery
|
||||||
}
|
}
|
||||||
else if (type == OBJECT_POWER ||
|
|
||||||
type == OBJECT_ATOMIC)
|
|
||||||
{
|
|
||||||
target = obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int j = 0; j < OBJECTMAXPART; j++)
|
for (int j = 0; j < OBJECTMAXPART; j++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue