Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do you sell stuffs in version 0.90.5?
- To: crossfire (at) ifi.uio.no,
- Subject: Re: How do you sell stuffs in version 0.90.5?
- From: Mark Wedel <>
- Date: Sun, 24 Apr 1994 23:24:15 -0700
there is a bug in input.c, such that if SAVE_INTERVAL was not
defined, items would not always be sold properly.
Here is a patch:
***************
*** 277,287 ****
insert_ob_in_ob(tmp,op->container);
draw_info(op,buf);
} else {
! if(!QUERY_FLAG(tmp, FLAG_UNPAID)&&tmp->nrof?tmp->value*tmp->nrof:tmp->value>2000)
/* If SAVE_INTERVAL is commented out, we never want to save the
* player here.
*/
#ifdef SAVE_INTERVAL
#if SAVE_INTERVAL
if((op->contr->last_save_time+SAVE_INTERVAL)<=time(NULL))
{
--- 279,290 ----
insert_ob_in_ob(tmp,op->container);
draw_info(op,buf);
} else {
!
/* If SAVE_INTERVAL is commented out, we never want to save the
* player here.
*/
#ifdef SAVE_INTERVAL
+ if(!QUERY_FLAG(tmp, FLAG_UNPAID)&&(tmp->nrof?tmp->value*tmp->nrof:tmp->value>2000))
#if SAVE_INTERVAL
if((op->contr->last_save_time+SAVE_INTERVAL)<=time(NULL))
{
--Mark