X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fview.qc;h=cd36c1000ecd1fb46d00a1856120384778da70c9;hb=1da96e958217f87f41d20c0968d51856a801b538;hp=0399ef87b1d9d7cf9531168c4ac9bf632c5c061d;hpb=4f4c471a6ba861785a118487ac2ddadaead70d52;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 0399ef87b..cd36c1000 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! @@ -1653,6 +1652,8 @@ void CSQC_UpdateView(entity this, float w, float h) } } + Welcome_Message_Show_Try(); + Announcer(); View_CheckButtonStatus(); @@ -1673,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; @@ -1682,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)); @@ -1715,6 +1705,11 @@ void CSQC_UpdateView(entity this, float w, float h) Debug_Draw(); #endif + if (autocvar__scoreboard_team_selection) + { + Scoreboard_UI_Enable(1); + cvar_set("_scoreboard_team_selection", "0"); + } scoreboard_active = Scoreboard_WouldDraw(); HUD_Draw(this); // this parameter for deep vehicle function