CleverRaven/Cataclysm-DDA — pull request #4023 by axujen (2013-11-01 01:04:22+00:00)
Title: Fix headlights not turning off for vehicules without electricity.

The function that toggled the lights on and off checked if the lights
were off or if the vehicule has some batteries left before toggling the
lights. This allowed vehicules without batteries to turn on their lights
but are not able to turn it off.

Fixed by checking if the lights were off instead.