mirror of
https://github.com/csd4ni3l/aim-trainer.git
synced 2026-01-01 12:13:42 +01:00
Fix game crashing when weapons were not customized.
This commit is contained in:
@@ -70,7 +70,6 @@ class Player(FixedFirstPersonController):
|
||||
self.gun.texture = Texture(Path(self.settings_dict.get("weapons", weapons)[weapon_name]["image"]))
|
||||
self.weapon_attack_speed = self.settings_dict.get("weapons", weapons)[weapon_name]["atk_speed"]
|
||||
self.weapon_dmg = self.settings_dict.get("weapons", weapons)[weapon_name]["dmg"]
|
||||
|
||||
if self.score > self.high_score:
|
||||
self.high_score = self.score
|
||||
|
||||
|
||||
Reference in New Issue
Block a user