From: terencehill Date: Mon, 11 Apr 2022 22:30:40 +0000 (+0200) Subject: Remove a few useless comments from CSQC_UpdateView. Move scoreboard_pos declaration... X-Git-Tag: xonotic-v0.8.5~83 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fb019b8ad467aef0435dd817302ad7445b9e711e;p=xonotic%2Fxonotic-data.pk3dir.git Remove a few useless comments from CSQC_UpdateView. Move scoreboard_pos declaration to the correct file --- diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 0a1772fc4..855d20f81 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -1591,7 +1591,6 @@ void CSQC_UpdateView(entity this, float w, float h) current_player = player_localnum; myteam = entcs_GetTeam(current_player); - // abused multiple places below entity local_player = ((csqcplayer) ? csqcplayer : CSQCModel_server2csqc(player_localentnum - 1)); if(!local_player) local_player = this; // fall back! @@ -1675,7 +1674,6 @@ void CSQC_UpdateView(entity this, float w, float h) // Draw the World (and sky) setproperty(VF_DRAWWORLD, 1); - // Set the console size vars vid_conwidth = autocvar_vid_conwidth; vid_conheight = autocvar_vid_conheight; vid_pixelheight = autocvar_vid_pixelheight; @@ -1684,18 +1682,8 @@ void CSQC_UpdateView(entity this, float w, float h) View_DemoCamera(); - // Draw the Crosshair - setproperty(VF_DRAWCROSSHAIR, 0); //Make sure engine crosshairs are always hidden - - // Draw the Engine Status Bar (the default Quake HUD) - setproperty(VF_DRAWENGINESBAR, 0); - - // Update the mouse position - /* - mousepos_x = vid_conwidth; - mousepos_y = vid_conheight; - mousepos = mousepos*0.5 + getmousepos(); - */ + setproperty(VF_DRAWCROSSHAIR, 0); // hide engine crosshair + setproperty(VF_DRAWENGINESBAR, 0); // hide engine status bar IL_EACH(g_drawables, it.draw, it.draw(it)); diff --git a/qcsrc/common/playerstats.qh b/qcsrc/common/playerstats.qh index 4e52b83e0..06feced27 100644 --- a/qcsrc/common/playerstats.qh +++ b/qcsrc/common/playerstats.qh @@ -86,6 +86,7 @@ void PlayerStats_GameReport(float finished); void PlayerStats_GameReport_Handler(entity fh, entity pass, float status); .string playerstats_id; +.float scoreboard_pos; //string autocvar_g_playerstats_uri; diff --git a/qcsrc/server/scores.qh b/qcsrc/server/scores.qh index 2287815f5..178181cba 100644 --- a/qcsrc/server/scores.qh +++ b/qcsrc/server/scores.qh @@ -5,7 +5,6 @@ bool autocvar_g_full_getstatus_responses; entity scores_initialized; // non-NULL when scores labels/rules have been set -.float scoreboard_pos; /** * Attaches a PlayerScore entity to a player. Use that in ClientConnect.