Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
aiming to moving target in ranged combat ai

1) Taking into account target move vector and speed. However aiming is not
ideal, since attack strength can't be controlled directly. I did achieve
almost 100% accuracy updating it everyframe but then thought it would be
unfair, cause AI should mimic human targetting.
2) Also added in this commit func to measure real attack durations for
weapon.
merge openmw master
old bug + comment fix
Combat music; some minor combat fixes
split getStartTime
Merge ESM::Cell fields by subrecord

Fixes an issue with the Morrowind Patched mod where cell ambient values would become black due to the new cell records not including an AMBI subrecord.

Also fixes a bug where mLeasedRefs was incorrectly cleared when overwriting a cell (*oldcell = *cell;)
Change openmw.log to boost ofstream to fix unicode path on windows (see https://github.com/OpenMW/openmw/pull/108)
Don't play the same music track twice in a row (Fixes #746)
Fix for broken physics in exteriors (Fixes #1446)

The wrong function was being used to check the distance between old and new positions. It took the length of the vectors into account, which makes no sense for positions. The issue was only observed in exteriors, since most interiors are relatively close to the origin.
Store keybindings as keycode, not keyname. Also use SDL_GetKeyName instead of a manually created map. Fixes #1202

Note: breaks compatibility with input.xml, so the filename was changed.
Cell merge fix (reference context position was not saved correctly)
Don't check mInterpolationType each iteration
Merge remote-tracking branch 'cc9cii/master'
Merge remote-tracking branch 'scrawl/master'
Merge remote-tracking branch 'origin/master'
warning fixes
Fix uninitialized variable use