#include "world.h"
+#if 0
+
typedef struct logic_packet logic_packet;
struct logic_packet
{
vg_line( from->co, to->co, clamped );
}
-VG_STATIC void logic_bricks_debug( world_instance *world )
+VG_STATIC void logic_bricks_debug( world_instance *world, v3f pos )
{
v3f white = {1.0f,1.0f,1.0f},
red = {1.0f,0.2f,0.1f},
struct logic_brick_ref *ref = &world->logic_bricks[i];
mdl_node *node = ref->node;
+ if( v3_dist2( node->co, pos ) > 50.0f*50.0f )
+ continue;
+
void *entdata = mdl_get_entdata( world->meta, node );
if( ref->node->classtype == k_classtype_logic_wire )
{
mdl_node *pnext = mdl_node_from_id( world->meta, inf->targets[red] );
- if( pnext->classtype == k_classtype_logic_wire )
+ if( (pnext->classtype == k_classtype_logic_wire) ||
+ (pnext->classtype == k_classtype_logic_chances) ||
+ (pnext->classtype == k_classtype_signal_splitter) )
{
packet->location = pnext->sub_uid;
}
}
}
+#endif
+
+
+
+
+
#endif /* WORLD_LOGIC_BRICKS_H */