move location of main camera to g_render
[carveJwlIkooP6JGAAIwe30JlM.git] / vehicle.c
index 35004d6a81c08cbd323622a5bcce7c9ccf32e442..c0a3376df0ea72eae7d87968d33307a0ccee1768 100644 (file)
--- a/vehicle.c
+++ b/vehicle.c
@@ -10,8 +10,8 @@ struct drivable_vehicle gzoomer =
 int spawn_car( int argc, const char *argv[] )
 {
    v3f ra, rb, rx;
-   v3_copy( skaterift.cam.pos, ra );
-   v3_muladds( ra, skaterift.cam.transform[2], -10.0f, rb );
+   v3_copy( g_render.cam.pos, ra );
+   v3_muladds( ra, g_render.cam.transform[2], -10.0f, rb );
 
    float t;
    if( spherecast_world( world_current_instance(),