… | |
… | |
282 | /* Then check if any players should use weapon-speed instead of speed */ |
282 | /* Then check if any players should use weapon-speed instead of speed */ |
283 | for_all_players (pl) |
283 | for_all_players (pl) |
284 | { |
284 | { |
285 | if (pl->has_hit) |
285 | if (pl->has_hit) |
286 | { |
286 | { |
287 | pl->ob->speed_left = min (pl->weapon_speed (), pl->ob->speed_left + pl->weapon_speed ()); |
287 | pl->ob->speed_left = min (pl->weapon_sp, pl->ob->speed_left + pl->weapon_sp); |
288 | |
288 | |
289 | if (pl->ob->speed_left > 0.f) |
289 | if (pl->ob->speed_left > 0.f) |
290 | pl->has_hit = 0; |
290 | pl->has_hit = 0; |
291 | } |
291 | } |
292 | else |
292 | else |