- minigame_drawpic_centered( tile_pos,
- minigame_texture(thepiece),
- tile_size, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL );
+ if(e.cnt == 1 || e.cnt == tail.cnt)
+ {
+ vector thedir = e.snake_dir;
+ float theang = 0;
+ if(e.cnt == tail.cnt)
+ {
+ int thex = minigame_tile_letter(e.netname);
+ int they = minigame_tile_number(e.netname);
+ entity t = snake_find_cnt(active_minigame, e.cnt - 1);
+ int tx = minigame_tile_letter(t.netname);
+ int ty = minigame_tile_number(t.netname);
+
+ if(thex - 1 == tx)
+ {
+ thedir_y = 0;
+ thedir_x = -1;
+ }
+ if(they + 1 == ty)
+ {
+ thedir_x = 0;
+ thedir_y = 1;
+ }
+ if(they - 1 == ty)
+ {
+ thedir_x = 0;
+ thedir_y = -1;
+ }
+ }
+
+ if(thedir_y == -1)
+ theang = M_PI;
+ if(thedir_x == 1)
+ theang = M_PI/2;
+ if(thedir_x == -1)
+ theang = M_PI*3/2;
+
+ drawrotpic(tile_pos, theang, minigame_texture(thepiece),
+ tile_size, tile_size/2, '1 1 1',
+ panel_fg_alpha, DRAWFLAG_NORMAL );
+ }
+ else
+ {
+ minigame_drawpic_centered( tile_pos,
+ minigame_texture(thepiece),
+ tile_size, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL );
+ }