From: Mario Date: Sun, 15 Nov 2015 18:45:18 +0000 (+1000) Subject: Show dozer with the correct angle during placement X-Git-Tag: xonotic-v0.8.2~1654^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9c3a159b7f9515e6109c69150e56b03c07b5b248;p=xonotic%2Fxonotic-data.pk3dir.git Show dozer with the correct angle during placement --- diff --git a/qcsrc/common/minigames/minigame/bd.qc b/qcsrc/common/minigames/minigame/bd.qc index 0e0a467e1..a2339cdf9 100644 --- a/qcsrc/common/minigames/minigame/bd.qc +++ b/qcsrc/common/minigames/minigame/bd.qc @@ -744,9 +744,18 @@ void bd_hud_board(vector pos, vector mySize) tile_pos = minigame_tile_pos(bd_curr_pos,BD_LET_CNT,BD_NUM_CNT); tile_pos = minigame_hud_denormalize(tile_pos,pos,mySize); - minigame_drawpic_centered( tile_pos, - minigame_texture(thepiece), - tile_size, '1 1 1', panel_fg_alpha/2, DRAWFLAG_NORMAL ); + if(bd_curr_tile == BD_TILE_DOZER) + { + drawrotpic(tile_pos, M_PI, minigame_texture("bd/dozer"), + tile_size, tile_size/2, '1 1 1', + panel_fg_alpha/2, DRAWFLAG_NORMAL ); + } + else + { + minigame_drawpic_centered( tile_pos, + minigame_texture(thepiece), + tile_size, '1 1 1', panel_fg_alpha/2, DRAWFLAG_NORMAL ); + } } if ( (active_minigame.minigame_flags & BD_TURN_LOSS) || (active_minigame.minigame_flags & BD_TURN_WIN) )