X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/copy_structured?a=blobdiff_plain;f=roguelike-server;h=741046a015e679447721f58b4d1ab924d4f48e9d;hb=ed564b0c471df71c9623316c7bfbf06f013e2030;hp=87a4e24267bad8afaca75e91d21cc73712b154ba;hpb=4c4b54efa5b631f46389940b2665ac62665e540b;p=plomrogue diff --git a/roguelike-server b/roguelike-server index 87a4e24..741046a 100755 --- a/roguelike-server +++ b/roguelike-server @@ -124,6 +124,8 @@ def obey(command, prefix, replay=False, do_record=False): and len(tokens) == commands_db[tokens[0]][0] + 1: if commands_db[tokens[0]][1]: commands_db[tokens[0]][2](*tokens[1:]) + elif tokens[0][0].islower() and not world_db["WORLD_ACTIVE"]: + print("Ignoring lowercase-starting commands when world inactive.") elif replay: print("Due to replay mode, reading command as 'go on in record'.") line = io_db["file_record"].readline() @@ -1367,7 +1369,7 @@ def command_worldactive(worldactive_string): if 0 == Thing: player_exists = True break - if wait_exists and player_exists and world_db["MAP"]: + if wait_exists and player_exists and "MAP" in world_db: for id in world_db["Things"]: if world_db["Things"][id]["T_LIFEPOINTS"]: build_fov_map(world_db["Things"][id])