… | |
… | |
234 | |
234 | |
235 | if (oldmap) |
235 | if (oldmap) |
236 | { |
236 | { |
237 | if (!op->contr->hidden) |
237 | if (!op->contr->hidden) |
238 | oldmap->players--; |
238 | oldmap->players--; |
|
|
239 | |
239 | if (oldmap->players <= 0) |
240 | if (oldmap->players <= 0) |
240 | { /* can be less than zero due to errors in tracking this */ |
241 | /* can be less than zero due to errors in tracking this */ |
241 | set_map_timeout (oldmap); |
242 | set_map_timeout (oldmap); |
242 | } |
|
|
243 | } |
243 | } |
244 | } |
244 | } |
245 | |
245 | |
246 | /* |
246 | /* |
247 | * enter_map(): Moves the player and pets from current map (if any) to |
247 | * enter_map(): Moves the player and pets from current map (if any) to |
… | |
… | |
1452 | main (int argc, char **argv) |
1452 | main (int argc, char **argv) |
1453 | { |
1453 | { |
1454 | settings.argc = argc; |
1454 | settings.argc = argc; |
1455 | settings.argv = argv; |
1455 | settings.argv = argv; |
1456 | |
1456 | |
1457 | cfperl_init (); |
|
|
1458 | |
|
|
1459 | init (argc, argv); |
1457 | init (argc, argv); |
1460 | |
1458 | |
1461 | initPlugins (); |
1459 | initPlugins (); |
1462 | |
1460 | |
1463 | for (;;) |
1461 | for (;;) |