Fix terrain derived data update (bug 534, bug 544)

http://bugs.openmw.org/issues/534
http://bugs.openmw.org/issues/544