Forgot to add the reset_fog_of_war function. It's declared inside Graphics/fow.h, which is includes in Graphics/map.h. It takes a FowComponent struct. You should pass FowComponent *fow when you're ready to reset the fog. It's declared inside main and holds all the information for all levels.
Merge branch 'LOLTESTING' of https://github.com/DComm2013Network/CutThePower into LOLTESTING