2025-07-29 09:52 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000092Spring engineGeneralpublic2012-06-27 02:29
ReporterIMSabbel 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000092: Can build checker disregards LOS -> Cheat
DescriptionTrying to build a building in a undiscovered maparea will show exactly where the enemy has build structures, as those will be shown as red in the footprint.

(with large buildings, fast scannings for cloacked buildings or mexes are very possible and are a serious cheating opportunity)
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • patch file icon UnitHandler.cpp.patch (708 bytes) 2006-07-02 22:21 -
    Index: UnitHandler.cpp
    ===================================================================
    --- UnitHandler.cpp	(revision 1564)
    +++ UnitHandler.cpp	(working copy)
    @@ -23,6 +23,7 @@
     #include "Sim/Misc/Feature.h"
     #include "Sim/Misc/FeatureHandler.h"
     #include "Sim/Units/Unit.h"
    +#include "Sim/Units/UnitTypes/Building.h"
     #include "LoadSaveInterface.h"
     #include "UnitLoader.h"
     #include "SyncTracer.h"
    @@ -314,7 +315,11 @@
     		if(dynamic_cast<CFeature*>(s))
     			feature=(CFeature*)s;
     		else if(s->immobile)
    -			return 0;
    +		{
    +			CBuilding* building = dynamic_cast<CBuilding*>(s);
    +			if(building && building->losStatus[gu->myAllyTeam] & LOS_INLOS) return 0;
    +			return 2;
    +		}
     		else
     			ret=1;
     	}
    
    patch file icon UnitHandler.cpp.patch (708 bytes) 2006-07-02 22:21 +

-Relationships
+Relationships

-Notes

~0000254

Asgeir (reporter)

Overlooked this bug report when I first read though the list, I double reported this one here:
http://taspring.clan-sy.com/mantis/view.php?id=216

~0000255

tvo (reporter)

92 and 216 are different bugs

~0000271

alphabeta (reporter)

I fixed this, now it only takes into account buildings in your teams LOS
+Notes

-Issue History
Date Modified Username Field Change
2006-02-28 01:07 IMSabbel New Issue
2006-06-23 03:49 Asgeir Note Added: 0000254
2006-06-23 11:01 tvo Relationship added has duplicate 0000216
2006-06-23 11:02 tvo Relationship deleted has duplicate 0000216
2006-06-23 11:03 tvo Note Added: 0000255
2006-07-02 22:21 alphabeta Note Added: 0000271
2006-07-02 22:21 alphabeta File Added: UnitHandler.cpp.patch
2006-07-02 22:39 SJ Status new => resolved
2012-06-27 02:27 abma Status resolved => assigned
2012-06-27 02:27 abma Assigned To => abma
2012-06-27 02:29 abma Status assigned => resolved
2012-06-27 02:29 abma Resolution open => fixed
+Issue History