So I'm noticing that stores in my game just stopped selling ammo. They are perpetually out. I saw in a thread here somewhere that attempts to fix this bug so far have been unsuccessful.
I did a little digging and found this commented out code in StoreUtilite.c - void UpdateStore(ref pStore):
It would seem it's job is to randomly add ammo and repair materials to the stores. Has anyone tried turning this back on? If so what were the results?
P.S. What's with the formatting in InitGoods.c? All those left aligned blocks in the if/else if chains make my eyes bleed.
EDIT : Forgot to mention this is running latest GOF
I did a little digging and found this commented out code in StoreUtilite.c - void UpdateStore(ref pStore):
Code:
// boal 25.01.2004 -->
/*if ( sti(curref.TradeType)==TRADE_TYPE_AMMUNITION )
{
curref.Quantity = 1000+Rand(50)*20;
continue;
}
if ( i==GOOD_SAILCLOTH || i==GOOD_PLANKS )
{
curref.Quantity = 600+Rand(100);
continue;
}*/
It would seem it's job is to randomly add ammo and repair materials to the stores. Has anyone tried turning this back on? If so what were the results?
P.S. What's with the formatting in InitGoods.c? All those left aligned blocks in the if/else if chains make my eyes bleed.
EDIT : Forgot to mention this is running latest GOF
Last edited: