(player_main): Don't end session silently when init_nats() fails.
This commit is contained in:
parent
08501fa9c3
commit
5537d902b7
1 changed files with 3 additions and 1 deletions
|
@ -76,8 +76,10 @@ player_main(struct player *p)
|
||||||
time(&player->lasttime);
|
time(&player->lasttime);
|
||||||
time(&player->curup);
|
time(&player->curup);
|
||||||
show_motd();
|
show_motd();
|
||||||
if (init_nats() < 0)
|
if (init_nats() < 0) {
|
||||||
|
pr("Server confused, try again later\n");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
natp = getnatp(player->cnum);
|
natp = getnatp(player->cnum);
|
||||||
if (!gamehours(player->curup)) {
|
if (!gamehours(player->curup)) {
|
||||||
pr("Empire hours restriction in force\n");
|
pr("Empire hours restriction in force\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue