From: terencehill Date: Wed, 30 Dec 2020 22:21:41 +0000 (+0100) Subject: Minigames: center bulldozer icon in the player status hud X-Git-Tag: xonotic-v0.8.5~616 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6fd652c755699fa4d815f62d6bb40a9fe2114f7c;p=xonotic%2Fxonotic-data.pk3dir.git Minigames: center bulldozer icon in the player status hud --- diff --git a/qcsrc/common/minigames/minigame/bd.qc b/qcsrc/common/minigames/minigame/bd.qc index 2aea16c54..a7a123243 100644 --- a/qcsrc/common/minigames/minigame/bd.qc +++ b/qcsrc/common/minigames/minigame/bd.qc @@ -1143,9 +1143,10 @@ void bd_hud_status(vector pos, vector mySize) string thepiece = "bd/dozer"; if(active_minigame.minigame_flags & BD_TURN_EDIT) thepiece = bd_get_tile_pic(bd_curr_tile); - drawpic( mypos, + const float tile_scale = 0.7; + drawpic( mypos + tile_size * 0.5 * (1 - tile_scale), minigame_texture(thepiece), - tile_size * 0.7, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL ); + tile_size * tile_scale, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL ); mypos_x += tile_size_x;