Re-applying a patch by Beliar in rev 3982
Re-applying a patch by Beliar in rev 3982

For some reason this got overwritten when I merged gui_enhanements.
Changing it back to what it was prior to the merge.

fifengine/fifengine,fifengine/fifengine,cbeck88/fifengine,gravitystorm/fifengine,cbeck88/fifengine,gravitystorm/fifengine,gravitystorm/fifengine,Niektory/fifengine,Niektory/fifengine,Niektory/fifengine,gravitystorm/fifengine,cbeck88/fifengine,fifengine/fifengine,cbeck88/fifengine