unsigne short int -> char
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void screenDisplay (unsigned short int **tab, int size)
|
||||
void screenDisplay (char **tab, int size)
|
||||
{
|
||||
// puts("0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 ");
|
||||
char element[7] = { ' ', '#', 'S', '.', '*', '@', '+' };
|
||||
@@ -18,13 +18,13 @@ void screenDisplay (unsigned short int **tab, int size)
|
||||
{
|
||||
for (int j = 0; j < size; ++j)
|
||||
{
|
||||
printf ("%c ", element[tab[i][j]]);
|
||||
printf ("%c ", element[(int)tab[i][j]]);
|
||||
}
|
||||
puts ("");
|
||||
}
|
||||
}
|
||||
|
||||
void screenDisplayGameSDL (unsigned short int **tab, dis *display_user)
|
||||
void screenDisplayGameSDL (char **tab, dis *display_user)
|
||||
{
|
||||
unsigned int display_game
|
||||
= display_user->size_window - display_user->size_menu;
|
||||
|
||||
Reference in New Issue
Block a user