Ticket #3530: t3530_throw_warnings.patch
File t3530_throw_warnings.patch, 845 bytes (added by , 9 years ago) |
---|
-
source/simulation2/components/CCmpObstructionManager.cpp
public: 272 272 } 273 273 } 274 274 275 275 virtual tag_t AddUnitShape(entity_id_t ent, entity_pos_t x, entity_pos_t z, entity_pos_t clearance, flags_t flags, entity_id_t group) 276 276 { 277 if (clearance == entity_pos_t::Zero()) 278 LOGWARNING("Adding unit shape obstruction with clearance zero for entity %d!", ent); 279 277 280 UnitShape shape = { ent, x, z, clearance, flags, group }; 278 281 u32 id = m_UnitShapeNext++; 279 282 m_UnitShapes[id] = shape; 280 283 281 284 m_UnitSubdivision.Add(id, CFixedVector2D(x - clearance, z - clearance), CFixedVector2D(x + clearance, z + clearance));