summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-20 16:42:52 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-20 16:42:52 +0800
commitbdd31693cd3b73ea5a3a9bdc78540e0377df59ec (patch)
treeb9fde34a33abcfe5ffd492346691588ca479496c /mbbsd
parent74cd20707c189fc522e7b44653f1d59a6219586c (diff)
downloadpttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.gz
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.bz2
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.lz
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.xz
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.tar.zst
pttbbs-bdd31693cd3b73ea5a3a9bdc78540e0377df59ec.zip
Add statistic program for angel.
fix some warning and add svn:keywords Id for several files. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2072 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/assess.c1
-rw-r--r--mbbsd/chc.c1
-rw-r--r--mbbsd/fav.c1
-rw-r--r--mbbsd/mbbsd.c2
-rw-r--r--mbbsd/screen.c6
5 files changed, 10 insertions, 1 deletions
diff --git a/mbbsd/assess.c b/mbbsd/assess.c
index 2e8ebd36..5ceb0564 100644
--- a/mbbsd/assess.c
+++ b/mbbsd/assess.c
@@ -1,3 +1,4 @@
+/* $Id$ */
#include "bbs.h"
#ifdef ASSESS
diff --git a/mbbsd/chc.c b/mbbsd/chc.c
index 4824af0f..5ab93a00 100644
--- a/mbbsd/chc.c
+++ b/mbbsd/chc.c
@@ -1,3 +1,4 @@
+/* $Id$ */
#include "bbs.h"
#define CENTER(a, b) (((a) + (b)) >> 1)
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index c5bd6c0d..e4766b1a 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -1,3 +1,4 @@
+/* $Id$ */
#include "bbs.h"
#ifdef MEM_CHECK
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index be7b32e7..402a71c6 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -778,9 +778,9 @@ setup_utmp(int mode)
if (enter_uflag & CLOAK_FLAG)
uinfo.invisible = YEA;
+#ifdef PLAY_ANGEL
if (REJECT_QUESTION)
uinfo.angel = 1;
-#ifdef PLAY_ANGEL
uinfo.angel |= ANGEL_STATUS() << 1;
#endif
diff --git a/mbbsd/screen.c b/mbbsd/screen.c
index 8c91434b..6ad8920b 100644
--- a/mbbsd/screen.c
+++ b/mbbsd/screen.c
@@ -306,6 +306,11 @@ outc(unsigned char c)
if (cur_col < slp->smod)
slp->smod = cur_col;
}
+#if 1
+ ++cur_col;
+#else
+ /* this comparison is always false (cur_col is unsigned char and scr_cols
+ * is 511). */
if (++cur_col >= scr_cols) {
if (standing && (slp->mode & STANDOUT)) {
standing = 0;
@@ -315,6 +320,7 @@ outc(unsigned char c)
if (cur_ln < scr_lns)
cur_ln++;
}
+#endif
}
int