ss13-daedalus / daedalus

A custom SS13 fork.
GNU General Public License v3.0
14 stars 7 forks source link

Overcharging a bot's battery #65

Closed GreyVulpine closed 12 years ago

GreyVulpine commented 12 years ago

While in a recharger, a cyborg regenerates X amount of energy a tick. It is possible, with timing, to exit a recharger with more than the maximum charge on a cyborg. This needs to be fixed.

sunfall commented 12 years ago

Fixed in the above commit, thanks to the magic of max().