Fixed map recognition and logfile reading

Map recognition will now result in a scene change, even if the state
that uses the map is active before the map is known. Fixed positioning
of the file pointer for necessary rereading of parts of the logfile.