Project

General

Profile

Revision 327

progress

View differences:

proj_func.c
336 336
    // bullets
337 337
    size_t sz = list_size(bullet_list);
338 338
    p->no_bullets = sz;
339
    p->bullets_x        = (double*)realloc(p->bullets_x         , sz * sizeof(double));
340
    p->bullets_y        = (double*)realloc(p->bullets_y         , sz * sizeof(double));
341
    p->bullets_vx       = (double*)realloc(p->bullets_vx        , sz * sizeof(double));
342
    p->bullets_vy       = (double*)realloc(p->bullets_vy        , sz * sizeof(double));
343
    p->bullets_shooter  = (bool*)  realloc(p->bullets_shooter   , sz * sizeof(bool  ));
339
    p->bullets_x        = (float*)realloc(p->bullets_x         , sz * sizeof(float));
340
    p->bullets_y        = (float*)realloc(p->bullets_y         , sz * sizeof(float));
341
    p->bullets_vx       = (float*)realloc(p->bullets_vx        , sz * sizeof(float));
342
    p->bullets_vy       = (float*)realloc(p->bullets_vy        , sz * sizeof(float));
343
    p->bullets_shooter  = (bool*) realloc(p->bullets_shooter   , sz * sizeof(bool ));
344 344

  
345 345
    list_node_t *it = list_begin(bullet_list);
346 346
    size_t i = 0;

Also available in: Unified diff