#include "main.h" #define MAX_POWER 10 typedef struct{ int x; int y; int type; int power; int radius; } t_epicenter; // variables t_epicenter* l_epicenters; int size_epi; int width, height; // functions int distance_manhattan(int x1,int y1, int x2, int y2); int absolute(int val); void create_epicenter(int type); int generate(int x, int y); void create_map(t_pixel** map, t_team* teams, int w, int h){ int i,j; width = w; height = h; //génération des épicentres l_epicenters = malloc(); // TODO : wtf malloc dans le vide for(i=0;iheight;j++){ if (i == 0 || j == 0){ map[i][j]=BEDROCK; else{ map[i][j] = generate(i,j); } } } for(int k=0;k 0 ? val : -val; }