create two reports by default when a new company is made
This commit is contained in:
parent
8ad01c0b0f
commit
7645f3f8e8
@ -205,8 +205,10 @@ thread Stock_UpdateReportingPeriods( stockid )
|
|||||||
// set current stock market prices to IPO
|
// set current stock market prices to IPO
|
||||||
g_stockMarketReportData[ stockid ] [ 0 ] [ E_PRICE ] = g_stockMarketData[ stockid ] [ E_IPO_PRICE ];
|
g_stockMarketReportData[ stockid ] [ 0 ] [ E_PRICE ] = g_stockMarketData[ stockid ] [ E_IPO_PRICE ];
|
||||||
|
|
||||||
// create report for the company using the IPO price
|
// 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 );
|
StockMarket_ReleaseDividends( stockid );
|
||||||
|
}
|
||||||
|
|
||||||
// put market maker shares on the market
|
// put market maker shares on the market
|
||||||
StockMarket_UpdateSellOrder( stockid, STOCK_MM_USER_ID, g_stockMarketData[ stockid ] [ E_IPO_SHARES ] );
|
StockMarket_UpdateSellOrder( stockid, STOCK_MM_USER_ID, g_stockMarketData[ stockid ] [ E_IPO_SHARES ] );
|
||||||
|
Loading…
Reference in New Issue
Block a user