Added in more sanity checks.

Signed-off-by: Japa <japa.mala.illo@gmail.com>
develop
Japa 2013-04-02 02:58:06 +05:30
parent 86a02952f8
commit b2f4029f42
2 changed files with 9 additions and 1 deletions

@ -1 +1 @@
Subproject commit 6a74e3ee9ee9d3e35da746fd3fd1d99c30b2e5ad
Subproject commit 510ca8aaaa6f6da51fbd00b51a2facd61dae07f1

@ -177,6 +177,14 @@ static command_result GetEmbarkTile(color_ostream &stream, const TileRequest *in
static command_result GetEmbarkInfo(color_ostream &stream, const MapRequest *in, MapReply *out)
{
if(!Core::getInstance().isWorldLoaded()) {
out->set_available(false);
return CR_OK;
}
if(!Core::getInstance().isMapLoaded()) {
out->set_available(false);
return CR_OK;
}
if(!df::global::gamemode) {
out->set_available(false);
return CR_OK;