1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Some serialization version stuff

This commit is contained in:
Perttu Ahola 2012-03-25 18:45:27 +03:00
parent 677456d319
commit f01c988094
2 changed files with 31 additions and 9 deletions

View file

@ -991,6 +991,7 @@ void the_game(
server->start(port);
}
try{
do{ // Client scope (breakable do-while(0))
/*
@ -2911,6 +2912,14 @@ void the_game(
// Client scope (client is destructed before destructing *def and tsrc)
}while(0);
} // try-catch
catch(SerializationError &e)
{
error_message = L"A serialization error occurred:\n"
+ narrow_to_wide(e.what()) + L"\n\nThe server is probably "
L" running a different version of Minetest.";
errorstream<<wide_to_narrow(error_message)<<std::endl;
}
if(!sound_is_dummy)
delete sound;