projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e2fcbe1
)
small ui tweaks
author
hgn
<hgodden00@gmail.com>
Mon, 27 Nov 2023 07:37:38 +0000
(07:37 +0000)
committer
hgn
<hgodden00@gmail.com>
Mon, 27 Nov 2023 07:37:38 +0000
(07:37 +0000)
ent_skateshop.c
patch
|
blob
|
history
player_remote.c
patch
|
blob
|
history
diff --git
a/ent_skateshop.c
b/ent_skateshop.c
index 76ac914eb8c2b8ddf81be2bba1f7e80934e3d669..ec3269435fa0f76c437624ac38c030e89d2caf57 100644
(file)
--- a/
ent_skateshop.c
+++ b/
ent_skateshop.c
@@
-413,7
+413,7
@@
static void ent_skateshop_preupdate( ent_skateshop *shop, int active ){
}
}
else if( shop->type == k_skateshop_type_server ){
}
}
else if( shop->type == k_skateshop_type_server ){
- f64 delta = vg.time - network_client.last_intent_change;
+ f64 delta = vg.time
_real
- network_client.last_intent_change;
if( delta > 5.0 ){
global_skateshop.helper_pick->greyed = 0;
if( delta > 5.0 ){
global_skateshop.helper_pick->greyed = 0;
diff --git
a/player_remote.c
b/player_remote.c
index b4a5c1067f595da4214cf8dbbb511471a344e89b..2234c6dc994aa3f50b8fdc0cf217603762dd551a 100644
(file)
--- a/
player_remote.c
+++ b/
player_remote.c
@@
-857,15
+857,20
@@
static void remote_player_gui_info( ui_rect box,
}
static void remote_players_imgui_lobby(void){
}
static void remote_players_imgui_lobby(void){
- /*
- * TODO: send location string over the network */
+ if( network_client.user_intent == k_server_intent_online ){
+ if( !(steam_ready &&
+ (network_client.state == k_ESteamNetworkingConnectionState_Connected)))
+ {
+ return;
+ }
+ }
ui_px y = 50, width = 200, height = 42, gap = 2,
x = vg.window_x - width;
vg_ui.font = &vg_ui_font_big;
ui_text( (ui_rect){ x, 0, width, height },
ui_px y = 50, width = 200, height = 42, gap = 2,
x = vg.window_x - width;
vg_ui.font = &vg_ui_font_big;
ui_text( (ui_rect){ x, 0, width, height },
- "
Online Players
", 1, k_ui_align_middle_center, 0 );
+ "
In World
", 1, k_ui_align_middle_center, 0 );
vg_ui.font = &vg_ui_font_small;
vg_ui.font = &vg_ui_font_small;