File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,8 @@ bool CCommandAI::AllowedCommand(const Command& c, bool fromSynced)
434
434
} else {
435
435
if (c.params .size () >= 3 ) {
436
436
const float3 cPos (c.params [0 ], c.params [1 ], c.params [2 ]);
437
- const float gHeight = ground->GetHeightReal (cPos.x , cPos.z , fromSynced);
437
+ // FIXME is fromSynced really sync-safe??? const float gHeight = ground->GetHeightReal(cPos.x, cPos.z, fromSynced);
438
+ const float gHeight = ground->GetHeightReal (cPos.x , cPos.z , true );
438
439
439
440
#if 0
440
441
// check if attack-ground is really attack-ground
@@ -449,6 +450,7 @@ bool CCommandAI::AllowedCommand(const Command& c, bool fromSynced)
449
450
// at positions outside LOS where UHM and SHM do not
450
451
// match will not be broken)
451
452
//
453
+
452
454
if (!aiOrder && math::fabs(cPos.y - gHeight) > SQUARE_SIZE) {
453
455
return false;
454
456
}
You can’t perform that action at this time.
0 commit comments