[10950] Check for scripting lib that it build with exactly same mangos rev.

This prevent use outdated script DLL with hidden possible incompatibilities
in used from core inline functions  or defines.
This commit is contained in:
VladimirMangos 2011-01-02 19:39:23 +03:00
parent 0da3463758
commit 9ae7104251
10 changed files with 79 additions and 52 deletions

View file

@ -1261,6 +1261,9 @@ void World::SetInitialWorldSettings()
case SCRIPT_LOAD_ERR_WRONG_API:
sLog.outError("Scripting library has wrong list functions (outdated?).");
break;
case SCRIPT_LOAD_ERR_OUTDATED:
sLog.outError("Scripting library build for old mangosd revision. You need rebuild it.");
break;
}
///- Initialize game time and timers