diff --git a/quakeworld/doors.qc b/quakeworld/doors.qc index 95a60fa..5048602 100644 --- a/quakeworld/doors.qc +++ b/quakeworld/doors.qc @@ -206,6 +206,7 @@ door_touch = case 0: centerprint (other, "You need the silver key"); sound (self, CHAN_VOICE, self.noise3, 1, ATTN_NORM); + break; default: break; } @@ -222,6 +223,7 @@ door_touch = case 0: centerprint (other, "You need the gold key"); sound (self, CHAN_VOICE, self.noise3, 1, ATTN_NORM); + break; default: break; } @@ -425,6 +427,7 @@ func_door = precache_sound ("doors/ddoor2.wav"); self.noise1 = "doors/ddoor2.wav"; self.noise2 = "doors/ddoor1.wav"; + break; default: break; } diff --git a/quakeworld/items.qc b/quakeworld/items.qc index 7ccbb93..8db2116 100644 --- a/quakeworld/items.qc +++ b/quakeworld/items.qc @@ -357,6 +357,7 @@ armor_touch = type = 0.8; value = 200; bit = IT_ARMOR3; + break; default: break; } @@ -1003,6 +1004,7 @@ key_setsounds = case 2: precache_sound2 ("misc/basekey.wav"); self.noise = "misc/basekey.wav"; + break; default: break; } @@ -1036,6 +1038,7 @@ item_key1 = precache_model2 ("progs/b_s_key.mdl"); setmodel (self, "progs/b_s_key.mdl"); self.netname = "silver keycard"; + break; default: break; } @@ -1075,6 +1078,7 @@ item_key2 = precache_model2 ("progs/b_g_key.mdl"); setmodel (self, "progs/b_g_key.mdl"); self.netname = "gold keycard"; + break; default: break; } @@ -1192,6 +1196,8 @@ powerup_touch = } other.super_time = 1; other.super_damage_finished = time + 30; + self.nextthink = time + 60; + break; default: self.nextthink = time + 60; break; diff --git a/quakeworld/plats.qc b/quakeworld/plats.qc index 59290cd..126a25b 100644 --- a/quakeworld/plats.qc +++ b/quakeworld/plats.qc @@ -163,6 +163,7 @@ func_plat = precache_sound ("plats/medplat2.wav"); self.noise = "plats/medplat1.wav"; self.noise1 = "plats/medplat2.wav"; + break; default: break; } diff --git a/quakeworld/player.qc b/quakeworld/player.qc index ee77c40..ef45f00 100644 --- a/quakeworld/player.qc +++ b/quakeworld/player.qc @@ -439,6 +439,7 @@ DeathSound = break; case 5: self.noise = "player/death5.wav"; + break; default: break; } diff --git a/quakeworld/triggers.qc b/quakeworld/triggers.qc index ac680e6..4bf62b4 100644 --- a/quakeworld/triggers.qc +++ b/quakeworld/triggers.qc @@ -114,6 +114,7 @@ trigger_multiple = case 2: precache_sound ("misc/talk.wav"); self.noise = "misc/talk.wav"; + break; case 3: precache_sound ("misc/trigger1.wav"); self.noise = "misc/trigger1.wav"; diff --git a/quakeworld/weapons.qc b/quakeworld/weapons.qc index ce95e48..7b512b0 100644 --- a/quakeworld/weapons.qc +++ b/quakeworld/weapons.qc @@ -1036,6 +1036,7 @@ CycleWeaponReverseCommand = self.weapon = IT_LIGHTNING; if (self.ammo_cells < 1) am = 1; + break; } if ((self.items & self.weapon) && am == 0) { @@ -1113,6 +1114,7 @@ ImpulseCommands = break; case 12: CycleWeaponReverseCommand (); + break; default: break; }