From 6b27b2a0c2aa17b3a362c51dc7d5067d69b4bc8b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 12 Oct 2005 20:27:50 +0000 Subject: [PATCH] updating firstturn from the server --- src/common/gamecode/laws.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/gamecode/laws.c b/src/common/gamecode/laws.c index 433e3c57f..2e6ceb3e0 100644 --- a/src/common/gamecode/laws.c +++ b/src/common/gamecode/laws.c @@ -1144,8 +1144,9 @@ parse_quit(void) } } else { if (f->subscription) { - sql_print(("UPDATE subscriptions SET status='ACTIVE', lastturn=%d, password='%s' WHERE id=%u;\n", - f->lastorders, f->override, f->subscription)); + sql_print(("UPDATE subscriptions SET status='ACTIVE', lastturn=%d, firstturn=%d, password='%s' WHERE id=%u;\n", + f->lastorders, f->lastorders-f->age, + f->override, f->subscription)); } }