Skip to content
Snippets Groups Projects
Commit 74832510 authored by Janos's avatar Janos
Browse files

Attribut Farbe von Autos gelöscht

parent 238488fb
No related branches found
No related tags found
No related merge requests found
...@@ -63,18 +63,6 @@ struct Car* init_car(int speed,int width,int height,int pred_pos,int pred_width, ...@@ -63,18 +63,6 @@ struct Car* init_car(int speed,int width,int height,int pred_pos,int pred_width,
b->x_pos = pred_pos - b->width - distance; b->x_pos = pred_pos - b->width - distance;
} }
if (t == car){
p = rand() % 4;
if (p == 0){
b->color = red;
}else if(p == 1){
b->color = green;
}else if (p == 2){
b->color = black;
}else if(p == 3){
b->color = black;
}
}
return(b); return(b);
} }
......
...@@ -27,12 +27,8 @@ enum vehicle{ ...@@ -27,12 +27,8 @@ enum vehicle{
car, train,boat, coin, coin_gathered car, train,boat, coin, coin_gathered
}; };
enum color{
red,blue,green, black
};
struct Car{ struct Car{
enum color color;
enum vehicle type ; enum vehicle type ;
int x_pos; int x_pos;
int width; int width;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment