fixe
[carveJwlIkooP6JGAAIwe30JlM.git] / world_routes.h
index 91456aa0afdbde6bb4f42937aceaab8399a06a79..f8a566c825878b534d2cef5aceef0fde9b5c27bc 100644 (file)
@@ -196,7 +196,7 @@ VG_STATIC void world_routes_debug( world_instance *world )
 }
 
 VG_STATIC void world_routes_place_curve( world_instance *world,
-                                         v4f h[4], v3f n0, v3f n2 )
+                                         v4f h[3], v3f n0, v3f n2 )
 {
    float t;
    v3f p, pd;
@@ -422,7 +422,7 @@ VG_STATIC void world_routes_generate( world_instance *world )
    }
 
    for( u32 i=0; i<mdl_arrcount(&world->ent_route_node); i++ ){
-      ent_route_node *rn = mdl_arritm( &world->ent_route, i );
+      ent_route_node *rn = mdl_arritm( &world->ent_route_node, i );
       rn->ref_count = 0;
       rn->ref_total = 0;
    }
@@ -612,8 +612,6 @@ VG_STATIC void render_world_routes( world_instance *world, camera *cam,
    mesh_bind( &world_global.mesh_gate );
 
    /* skip writing into the motion vectors for this */
-   /* TODO: draw future gate if the one we're looking through is to be passed,
-    *       instead of current gate */
    glDrawBuffers( 1, (GLenum[]){ GL_COLOR_ATTACHMENT0 } );
 
    for( u32 i=0; i<mdl_arrcount(&world->ent_route); i++ ){