switch to vgc system
[fishladder.git] / fishladder.c
index b6fc80be87a9949d9ddcbb98c9a30685ea40941e..f82cebeea04de390e963e0df4d29b14b172d786a 100644 (file)
@@ -2,7 +2,6 @@
 
 #define MARBLE_COMP_VERSION 4
 //#define VG_CAPTURE_MODE
-//#define VG_STEAM
 #define VG_STEAM_APPID 1218140U
 #include "vg/vg.h"
 
@@ -1267,7 +1266,6 @@ static void career_pass_level( struct cmp_level *lvl, int score, int upload )
                if( lvl->unlock ) 
          career_unlock_level( lvl->unlock );
                
-               #ifdef VG_STEAM
                if( lvl->achievement )
                        sw_set_achievement( lvl->achievement );
 
@@ -1284,7 +1282,6 @@ static void career_pass_level( struct cmp_level *lvl, int score, int upload )
                }
                
                sw_set_achievement( "MASTER_ENGINEER" );
-               #endif
        }
 }
 
@@ -1968,9 +1965,7 @@ static void vg_update(void)
                                                        if( cell_entry->config == k_cell_type_con_r || cell_entry->config == k_cell_type_con_u 
                                                                || cell_entry->config == k_cell_type_con_l || cell_entry->config == k_cell_type_con_d )
                                                        {
-                                                               #ifdef VG_STEAM
                                                                sw_set_achievement( "CAN_DO_THAT" );
-                                                               #endif
 
                                                                fish->state = k_fish_state_soon_alive;
                                                                
@@ -2087,9 +2082,7 @@ static void vg_update(void)
                                                        
                                                        if( collide_next_frame || collide_this_frame )
                                                        {
-                                                               #ifdef VG_STEAM
                                                                sw_set_achievement( "BANG" );
-                                                               #endif
 
                                                                // Shatter death (+0.5s)
                                                                float death_time = world.sim_internal_time + ( collide_this_frame? 0.0f: 0.5f );
@@ -2232,10 +2225,8 @@ static void vg_update(void)
                                }
                                else
                                {
-                                       #ifdef VG_STEAM
                                        if( world.sim_run > 0 )
                                                sw_set_achievement( "GOOD_ENOUGH" );
-                                       #endif
 
                                        vg_error( "Level failed :(\n" );
                                }
@@ -3822,10 +3813,6 @@ void vg_start(void)
 
 void vg_free(void)
 {
-#ifdef VG_STEAM
-       sw_free_opengl();
-#endif
-
        console_save_map( 0, NULL );
        career_serialize();