]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Show dozer with the correct angle during placement
authorMario <mario@smbclan.net>
Sun, 15 Nov 2015 18:45:18 +0000 (04:45 +1000)
committerMario <mario@smbclan.net>
Sun, 15 Nov 2015 18:45:18 +0000 (04:45 +1000)
qcsrc/common/minigames/minigame/bd.qc

index 0e0a467e196c5be8e096ae06ec0d20dcd7586edf..a2339cdf9532cf834f2e54f1700a326652f7f1bc 100644 (file)
@@ -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) )