X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Foptions.c;h=b4964f93948ca9f7396effcd559f68294a31cc95;hb=135d8d8a02341719302158e7beade95fae2daf95;hp=34dee8fc24b7379efb4e8641e5143beeaec4d93a;hpb=f42df7ecfc0f8c1425baf89c88721ca878ee1de1;p=raydungeon diff --git a/src/options.c b/src/options.c index 34dee8f..b4964f9 100644 --- a/src/options.c +++ b/src/options.c @@ -3,6 +3,7 @@ #include #include #include "options.h" +#include "game.h" #include "treestor.h" #define DEF_XRES 1280 @@ -40,6 +41,8 @@ int parse_options(int argc, char **argv) fprintf(stderr, "%s must be followed by a screen name\n", argv[i - 1]); return -1; } + start_scr_name = argv[i]; + } else if(strcmp(argv[i], "-h") == 0 || strcmp(argv[i], "-help") == 0) { printf(usage_fmt, argv[0]); exit(0);