diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2004-04-05 14:24:46 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2004-04-05 14:24:46 +0000 |
commit | a599748b8b9b0f3430fa1f5be5ced1084126efcc (patch) | |
tree | 3a1de8e4e46dd32ee4badaf9ec19b777b9eac1c1 /games | |
parent | 2cdae8086437e70170a777305eec0949c2ca1afe (diff) |
Don't init curses until after option processing. pjanzen@ ok
Diffstat (limited to 'games')
-rw-r--r-- | games/backgammon/backgammon/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/games/backgammon/backgammon/main.c b/games/backgammon/backgammon/main.c index 5ed5630ed12..0d696da24fb 100644 --- a/games/backgammon/backgammon/main.c +++ b/games/backgammon/backgammon/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.13 2003/06/03 03:01:38 millert Exp $ */ +/* $OpenBSD: main.c,v 1.14 2004/04/05 14:24:45 aaron Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.13 2003/06/03 03:01:38 millert Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.14 2004/04/05 14:24:45 aaron Exp $"; #endif #endif /* not lint */ @@ -103,7 +103,6 @@ main (argc,argv) char c; /* non-descript character storage */ signal(SIGINT, getout); /* trap interrupts */ - initcurses(); /* check user count */ #if 0 @@ -120,6 +119,8 @@ main (argc,argv) getarg(argc, argv); args[acnt] = '\0'; + initcurses(); + /* check if restored game and save flag for later */ if ((rfl = rflag)) { wrboard(); /* print board */ |