Skip to content

Commit

Permalink
= is not ==
Browse files Browse the repository at this point in the history
  • Loading branch information
Thera-Pissed committed Jan 12, 2024
1 parent 2f4bf05 commit 85595b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/game/machinery/porta_turret/portable_turret.dm
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ DEFINE_BITFIELD(turret_flags, list(
max_integrity = 300
always_up = 1
use_power = ACTIVE_POWER_USE
active_power_usage = 300
active_power_usage = ACTIVE_DRAW_MINIMAL
has_cover = 0
scan_range = 9
stun_projectile = /obj/projectile/beam/disabler
Expand Down
4 changes: 2 additions & 2 deletions code/modules/power/power.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@

/obj/machinery/proc/set_idle_power()
set_no_power()
if(use_power = NO_POWER_USE)
if(use_power == NO_POWER_USE)
return
use_static_power = IDLE_POWER_USE
addStaticPower(idle_power_usage, power_channel + 3)

/obj/machinery/proc/set_active_power()
set_no_power()
if(use_power = NO_POWER_USE)
if(use_power == NO_POWER_USE)
return
use_static_power = ACTIVE_POWER_USE
addStaticPower(active_power_usage, power_channel + 3)
Expand Down

0 comments on commit 85595b9

Please sign in to comment.