From 7645f3f8e8fae8a79e61934153de44f7c9bbe580 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Wed, 31 Oct 2018 19:04:59 +1100 Subject: [PATCH] create two reports by default when a new company is made --- gamemodes/irresistible/cnr/features/stocks/stocks.pwn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn index da525c4..fff3994 100644 --- a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn +++ b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn @@ -205,8 +205,10 @@ thread Stock_UpdateReportingPeriods( stockid ) // set current stock market prices to IPO g_stockMarketReportData[ stockid ] [ 0 ] [ E_PRICE ] = g_stockMarketData[ stockid ] [ E_IPO_PRICE ]; - // create report for the company using the IPO price - StockMarket_ReleaseDividends( stockid ); + // create 2 reports for the company using the IPO price ... this way the price is not $0 + for ( new i = 0; i < 2; i ++ ) { + StockMarket_ReleaseDividends( stockid ); + } // put market maker shares on the market StockMarket_UpdateSellOrder( stockid, STOCK_MM_USER_ID, g_stockMarketData[ stockid ] [ E_IPO_SHARES ] );