X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fminigames%2Fcl_minigames.qc;h=2e5b30c61cbfae9f5ef5935e4aa4a100e78dd515;hb=4645e628012c04435ba01fd6b4d10618ddf44e44;hp=1aa748faab08c38ebc7955b3a12c88f4475c3ab2;hpb=c13fdf2b49eff1d26abc73d42e33636162a9b527;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/minigames/cl_minigames.qc b/qcsrc/common/minigames/cl_minigames.qc index 1aa748faa..2e5b30c61 100644 --- a/qcsrc/common/minigames/cl_minigames.qc +++ b/qcsrc/common/minigames/cl_minigames.qc @@ -8,7 +8,7 @@ void minigame_hud_simpleboard(vector pos, vector mySize, string board_texture) panel.current_panel_bg, mySize + '1 1 0' * 2 * panel_bg_border, panel_bg_color, panel_bg_alpha, - '1 1 0' * (panel_bg_border/BORDER_MULTIPLIER)); + '1 1 0' * BORDER_MULTIPLIER * panel_bg_border); drawpic(pos, board_texture, mySize, '1 1 1', panel_bg_alpha, DRAWFLAG_NORMAL); } @@ -74,8 +74,8 @@ MINIGAME_SIMPLELINKED_ENTITIES void minigame_autoclean_entity(entity e) { - LOG_DEBUG("CL Auto-cleaned: ",ftos(etof(e)), " (",e.classname,")\n"); - remove(e); + LOG_DEBUG("CL Auto-cleaned: ",ftos(etof(e)), " (",e.classname,")"); + delete(e); } void HUD_MinigameMenu_CurrentButton(); @@ -121,7 +121,7 @@ void activate_minigame(entity minigame) if ( !minigame.descriptor || minigame.classname != "minigame" ) { - LOG_TRACE("Trying to activate unregistered minigame ",minigame.netname," in client\n"); + LOG_TRACE("Trying to activate unregistered minigame ",minigame.netname," in client"); return; } @@ -174,7 +174,7 @@ void minigame_read_owner(entity this) this.owner = find(this.owner,netname,owner_name); while ( this.owner && this.owner.classname != "minigame" ); if ( !this.owner ) - LOG_TRACE("Got a minigame entity without a minigame!\n"); + LOG_TRACE("Got a minigame entity without a minigame!"); } NET_HANDLE(ENT_CLIENT_MINIGAME, bool isnew) { @@ -196,7 +196,7 @@ NET_HANDLE(ENT_CLIENT_MINIGAME, bool isnew) this.entremove = minigame_entremove; this.descriptor = minigame_get_descriptor(ReadString_Raw()); if ( !this.descriptor ) - LOG_TRACE("Got a minigame without a client-side descriptor!\n"); + LOG_TRACE("Got a minigame without a client-side descriptor!"); else this.minigame_event = this.descriptor.minigame_event; } @@ -212,7 +212,7 @@ NET_HANDLE(ENT_CLIENT_MINIGAME, bool isnew) minigame_read_owner(this); float ent = ReadLong(); this.minigame_playerslot = ent; - LOG_DEBUG("Player: ",entcs_GetName(ent-1),"\n"); + LOG_DEBUG("Player: ",entcs_GetName(ent-1)); activate = (ent == player_localnum+1 && this.owner && this.owner != active_minigame); @@ -238,7 +238,7 @@ NET_HANDLE(ENT_CLIENT_MINIGAME, bool isnew) { LOG_DEBUG("CL Reading entity: ",ftos(etof(this)), " classname:",this.classname," enttype:",ftos(this.enttype) ); - LOG_DEBUG(" sf:",ftos(sf)," netname:",this.netname,"\n\n"); + LOG_DEBUG(" sf:",ftos(sf)," netname:",this.netname); } return true; }