From 5d8b16974b3c7d1104d23df42f23e901eb01a326 Mon Sep 17 00:00:00 2001 From: hgn Date: Fri, 21 Jul 2023 23:05:37 +0100 Subject: [PATCH] incorrect legacy code --- player.c | 4 ++++ skaterift.c | 2 +- world_gate.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/player.c b/player.c index ab39319..0e45e99 100644 --- a/player.c +++ b/player.c @@ -225,6 +225,10 @@ PLAYER_API void player__im_gui( player_instance *player ){ g_player_debugger[2] = 300; g_player_debugger[3] = 32; + player__debugtext( 2, "world (%u)", world_static.active_world ); + player__debugtext( 1, "model version: %u", + world_current_instance()->meta.info.version ); + player__debugtext( 2, "director" ); player__debugtext( 1, "activity: %s", (const char *[]){ [k_skaterift_menu] = "menu", diff --git a/skaterift.c b/skaterift.c index 3e3af23..b18ede4 100644 --- a/skaterift.c +++ b/skaterift.c @@ -13,7 +13,7 @@ #if 1 -//#define SR_NETWORKED +#define SR_NETWORKED #ifndef VG_RELEASE #define VG_DEVWINDOW diff --git a/world_gate.c b/world_gate.c index 0a64551..64333da 100644 --- a/world_gate.c +++ b/world_gate.c @@ -341,7 +341,7 @@ VG_STATIC void world_link_nonlocal_async( void *payload, u32 size ) v4_copy( gate->q[0], gate2->q[1] ); v4_copy( gate2->q[0], gate->q[1] ); - if( other->meta.info.version >= 102 ){ + if( world->meta.info.version >= 102 ){ gate->flags |= k_ent_gate_flip; gate2->flags |= k_ent_gate_flip; } -- 2.25.1