Skip to content

Commit

Permalink
fix #6066 #6067
Browse files Browse the repository at this point in the history
  • Loading branch information
rt committed Nov 8, 2018
1 parent c009c3c commit fb31a6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rts/Sim/MoveTypes/GroundMoveType.cpp
Expand Up @@ -1623,7 +1623,7 @@ void CGroundMoveType::HandleObjectCollisions()
// handle collisions for even-numbered objects on even-numbered frames and vv.
// (temporal resolution is still high enough to not compromise accuracy much?)
// if ((collider->id & 1) == (gs->frameNum & 1)) {
{
if (!collider->beingBuilt) {
const UnitDef* colliderUD = collider->unitDef;
const MoveDef* colliderMD = collider->moveDef;

Expand Down Expand Up @@ -1669,6 +1669,9 @@ bool CGroundMoveType::HandleStaticObjectCollision(
bool checkYardMap,
bool checkTerrain
) {
// while being built, units that overlap their factory yardmap should not be moved at all
assert(!collider->beingBuilt);

if (checkTerrain && (!collider->IsMoving() || collider->IsInAir()))
return false;

Expand Down

0 comments on commit fb31a6c

Please sign in to comment.