Remove some duplicate variables/ifs
Remove some duplicate variables/ifs

NickVolynkin/SmokeDetector,Charcoal-SE/SmokeDetector,ArtOfCode-/SmokeDetector,Charcoal-SE/SmokeDetector,ArtOfCode-/SmokeDetector,NickVolynkin/SmokeDetector