The reason of the problem was that you used a different view than the default camera view, but your light_view pointer was still set to the camera view.

http://manual.3dgamestudio.net/light_view.htm

Add the following line:

light_view = first_person;