… | |
… | |
158 | |
158 | |
159 | /* This loads the first map an puts the player on it. */ |
159 | /* This loads the first map an puts the player on it. */ |
160 | static void |
160 | static void |
161 | set_first_map (object *op) |
161 | set_first_map (object *op) |
162 | { |
162 | { |
163 | strcpy (op->contr->maplevel, first_map_path); |
163 | op->contr->maplevel = first_map_path; |
164 | op->x = -1; |
164 | op->x = -1; |
165 | op->y = -1; |
165 | op->y = -1; |
166 | } |
166 | } |
167 | |
167 | |
168 | void |
168 | void |
… | |
… | |
307 | */ |
307 | */ |
308 | outputs_sync = 16; /* Every 2 seconds */ |
308 | outputs_sync = 16; /* Every 2 seconds */ |
309 | outputs_count = 8; /* Keeps present behaviour */ |
309 | outputs_count = 8; /* Keeps present behaviour */ |
310 | unapply = unapply_nochoice; |
310 | unapply = unapply_nochoice; |
311 | |
311 | |
312 | assign (savebed_map, first_map_path); /* Init. respawn position */ |
312 | savebed_map = first_map_path; /* Init. respawn position */ |
313 | |
313 | |
314 | gen_sp_armour = 10; |
314 | gen_sp_armour = 10; |
315 | last_speed = -1; |
315 | last_speed = -1; |
316 | shoottype = range_none; |
316 | shoottype = range_none; |
317 | bowtype = bow_normal; |
317 | bowtype = bow_normal; |
… | |
… | |
929 | if (*first_map_ext_path) |
929 | if (*first_map_ext_path) |
930 | { |
930 | { |
931 | object *tmp; |
931 | object *tmp; |
932 | char mapname[MAX_BUF]; |
932 | char mapname[MAX_BUF]; |
933 | |
933 | |
934 | snprintf (mapname, MAX_BUF - 1, "%s/%s", first_map_ext_path, &op->arch->name); |
934 | snprintf (mapname, MAX_BUF - 1, "%s/%s", &first_map_ext_path, &op->arch->name); |
935 | tmp = object::create (); |
935 | tmp = object::create (); |
936 | EXIT_PATH (tmp) = mapname; |
936 | EXIT_PATH (tmp) = mapname; |
937 | EXIT_X (tmp) = op->x; |
937 | EXIT_X (tmp) = op->x; |
938 | EXIT_Y (tmp) = op->y; |
938 | EXIT_Y (tmp) = op->y; |
939 | op->enter_exit (tmp); /* we don't really care if it succeeded; |
939 | op->enter_exit (tmp); /* we don't really care if it succeeded; |
940 | * if the map isn't there, then stay on the |
940 | * if the map isn't there, then stay on the |
941 | * default initial map */ |
941 | * default initial map */ |
942 | tmp->destroy (); |
942 | tmp->destroy (); |
943 | } |
943 | } |