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;
|
||||
}
|
||||
else if ((type == OBJECT_POWER ||
|
||||
type == OBJECT_ATOMIC) &&
|
||||
obj->GetTruck() != nullptr) // battery used?
|
||||
{
|
||||
target = obj->GetTruck();
|
||||
}
|
||||
else if (type == OBJECT_POWER ||
|
||||
type == OBJECT_ATOMIC)
|
||||
{
|
||||
target = obj;
|
||||
}
|
||||
|
||||
else if (type == OBJECT_POWER || type == OBJECT_ATOMIC)
|
||||
{
|
||||
target = obj->GetTruck(); // battery connected
|
||||
if (!target) target = obj; // standalone battery
|
||||
}
|
||||
|
||||
for (int j = 0; j < OBJECTMAXPART; j++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue