From 7cdc3ac6976bc9e8003f6961fc785e740c0e295c Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 24 Feb 2019 19:58:26 +1100 Subject: [PATCH] ignore market maker account --- gamemodes/irresistible/cnr/features/stocks/stocks.pwn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn index a10614d..a4de857 100644 --- a/gamemodes/irresistible/cnr/features/stocks/stocks.pwn +++ b/gamemodes/irresistible/cnr/features/stocks/stocks.pwn @@ -474,6 +474,9 @@ thread StockMarket_PanicSell( stockid ) { new user_id = cache_get_field_content_int( row, "USER_ID" ); + if ( user_id == STOCK_MM_USER_ID ) + continue; // ignore market maker account + new Float: held_shares = cache_get_field_content_float( row, "HELD_SHARES" ); new Float: owned_shares = cache_get_field_content_float( row, "OWNED_SHARES" ); new Float: player_shares_forfeited = floatround( ( held_shares + owned_shares ) * STOCK_BANKRUPTCY_LOSS_PERCENT / 100.0 );