Project

General

Profile

Revision 237

now loading bullet sprite only once

View differences:

ent.c
107 107
    sprite_t *b;
108 108
    int damage;
109 109
};
110
bullet_t* (bullet_ctor)(const gunner_t *shooter, basic_sprite_t *b, double x, double y, double vx, double vy){
110
bullet_t* (bullet_ctor)(const gunner_t *shooter, const basic_sprite_t *b, double x, double y, double vx, double vy){
111 111
    bullet_t *ret = malloc(sizeof(bullet_t));
112 112
    if(ret == NULL) return NULL;
113 113
    ret->shooter = shooter;

Also available in: Unified diff