Project

General

Profile

Revision 301

changed shooters

View differences:

proj_func.c
117 117
                /// Change health
118 118
                gunner_set_curr_health(shooter, gunner_get_curr_health(shooter) - bullet_get_damage(bullet));
119 119
                if (gunner_get_curr_health(shooter) <= 0) {
120
                    gunner_set_curr_health(shooter, gunner_get_health(shooter));
121
                    get_random_spawn(map, shooter);
120
                    gunner_dtor(list_erase(shooter_list, shooter_it));
122 121
                }
123 122
                /// Delete bullet
124 123
                bullet_dtor(list_erase(bullet_list, bullet_it)); deleted_bullet = true;

Also available in: Unified diff