projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enable workshop world submissions
[carveJwlIkooP6JGAAIwe30JlM.git]
/
skaterift.c
diff --git
a/skaterift.c
b/skaterift.c
index 50e780f898811a3be394cf2338b5e55648f60630..5400e76b43f1dd7234d80f2bebc523d9a33a78a4 100644
(file)
--- a/
skaterift.c
+++ b/
skaterift.c
@@
-45,6
+45,7
@@
#include "entity.c"
#include "workshop.c"
#include "addon.c"
#include "entity.c"
#include "workshop.c"
#include "addon.c"
+#include "highscores.c"
static struct player_avatar localplayer_avatar;
static struct player_model localplayer_models[3];
static struct player_avatar localplayer_avatar;
static struct player_model localplayer_models[3];
@@
-57,10
+58,12
@@
int main( int argc, char *argv[] )
return 0;
}
return 0;
}
+#if 0
VG_STATIC void highscores_save_at_exit(void)
{
highscores_serialize_all();
}
VG_STATIC void highscores_save_at_exit(void)
{
highscores_serialize_all();
}
+#endif
VG_STATIC void vg_launch_opt(void)
{
VG_STATIC void vg_launch_opt(void)
{
@@
-78,11
+81,13
@@
vg_info(" | \\/ | | / | | \\ | / | \n" );
vg_info(" ' ' '--' [] '----- '----- ' ' '---' "
"SOFTWARE\n" );
vg_info(" ' ' '--' [] '----- '----- ' ' '---' "
"SOFTWARE\n" );
+ /* 31.05.23 (hgn): this is only a server feature now */
+#if 0
highscores_init( 2000, 50 );
if( !highscores_read() )
highscores_create_db();
highscores_init( 2000, 50 );
if( !highscores_read() )
highscores_create_db();
-
vg_loader_step( NULL, highscores_save_at_exit );
vg_loader_step( NULL, highscores_save_at_exit );
+#endif
steam_init();
vg_loader_step( NULL, steam_end );
steam_init();
vg_loader_step( NULL, steam_end );
@@
-151,10
+156,10
@@
VG_STATIC void vg_load(void)
/* 'systems' are completely loaded now */
/* load home/permanent world manually */
/* 'systems' are completely loaded now */
/* load home/permanent world manually */
- strcpy( world_loader.name, "mp_spawn" );
+ world_loader.reg = NULL;
+ strcpy( world_loader.override_name, "mp_spawn" );
world_loader.generate_point_cloud = 1;
world_loader.world_index = 0;
world_loader.generate_point_cloud = 1;
world_loader.world_index = 0;
- world_loader.location = k_world_load_type_local;
world_load_mdl( "maps/mp_spawn/main.mdl" );
/* Completing addon registrations
world_load_mdl( "maps/mp_spawn/main.mdl" );
/* Completing addon registrations
@@
-190,6
+195,7
@@
VG_STATIC void vg_load(void)
vg_async_call( async_addon_reg_update, NULL, 0 );
vg_console_load_autos();
menu_link();
vg_async_call( async_addon_reg_update, NULL, 0 );
vg_console_load_autos();
menu_link();
+ temp_update_playermodel();
vg_async_call( async_skaterift_complete, NULL, 0 );
}
vg_async_call( async_skaterift_complete, NULL, 0 );
}