You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"handle_control_rod_efficiency()" divides by zero when you remove all the rods.
When there's no rods control_rods.len = 0, and 0/0 is NAN.
STEPS TO REPRODUCE
PUT ROD IN
TAKE ROD OUT
RUNTIME ERROR LIKE A BOSS
This function causes many other "fun" things, and also maybe probably (definitely not) intended behavior. Have fun if you decide to fix it. :)
Could have been funnier if byond handled it differently.
Made me spend like 9 hours figuring why this was inconsistent with my simulator then realizing it was a runtime error with byond.
Client: 515.1643
The text was updated successfully, but these errors were encountered:
https://github.com/BeeStation/NSV13/blob/52337049ee3e3d78d99ccb4a3549695fc92e3171/nsv13/code/modules/power/stormdrive.dm#L719C1-L723C75
NSV13/nsv13/code/modules/power/stormdrive.dm
Line 723 in 5233704
^very sad!
ISSUE
"handle_control_rod_efficiency()" divides by zero when you remove all the rods.
When there's no rods control_rods.len = 0, and 0/0 is NAN.
STEPS TO REPRODUCE
This function causes many other "fun" things, and also maybe probably (definitely not) intended behavior. Have fun if you decide to fix it. :)
Could have been funnier if byond handled it differently.
Made me spend like 9 hours figuring why this was inconsistent with my simulator then realizing it was a runtime error with byond.
Client: 515.1643
The text was updated successfully, but these errors were encountered: