Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More crossfire stuff :)



Okay.. here is the patch for the shop code. 
It was really very simple.

What would happen is that if you couldn't afford something, it would return
immediately WITHOUT ever updating the inventory of the players.  The inclusion
of the draw_all_inventory() before the return 0 fixes the problem.

-------------------------------cut here-----------------------------------
*** shop.c.old	Fri Sep  4 20:06:39 1992
--- shop.c	Fri Sep  4 20:09:11 1992
***************
*** 114,119 ****
--- 114,120 ----
          if(!pay_for_item(tmp,pl)) {
            sprintf(buf2,"You can't afford %s.",query_name(tmp));
            draw_info(pl,buf2);
+           draw_all_inventory(pl);
            return 0;
          } else {
            UNSET_UNPAID(tmp);
------------------------------cut here to get rid of the sig----------------
-------------------------------------------------------------------------
Practice random kindness and senseless acts of beauty --Anonymous
Argue for your limitations and sure enough they're yours --Richard Bach

Moonchilde/Amythyst/JT Traub ---           jtraub@cmu.edu