diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-03-05 20:53:18 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-03-07 22:10:00 +0100 |
commit | 99227026607ecfaca1ff07705930a83d41c16042 (patch) | |
tree | 49153afd9f05d65c2102ff974f763342eb59684e /tools | |
parent | b0225ccd7997e900d4276eacc1541ec80fadbb48 (diff) | |
download | manaserv-99227026607ecfaca1ff07705930a83d41c16042.tar.gz manaserv-99227026607ecfaca1ff07705930a83d41c16042.tar.bz2 manaserv-99227026607ecfaca1ff07705930a83d41c16042.tar.xz manaserv-99227026607ecfaca1ff07705930a83d41c16042.zip |
Added a function that returns the current map or raises an error
The new function 'checkCurrentMap' will raise an error when no current map has
been set, eliminating the need to do custom error handling all over the place.
This also fixes several functions that would otherwise have simply crashed
when there was no current map.
Also cleaned up some "empty string parameter" checks.
Reviewed-by: Erik Schilling
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions