From a17ec55d0dee70f76f5d9720136c6bd00af790c8 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sun, 1 May 2016 11:30:09 +0200 Subject: [PATCH] - Fixed drop style gameinfo inconsistency. The gameinfo option was ignored when deciding the initial spawn height position. --- src/p_enemy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_enemy.cpp b/src/p_enemy.cpp index 56437e133..fcc18ae55 100644 --- a/src/p_enemy.cpp +++ b/src/p_enemy.cpp @@ -3158,7 +3158,7 @@ AInventory *P_DropItem (AActor *source, PClassActor *type, int dropamount, int c int style = sv_dropstyle; if (style == 0) { - style = (gameinfo.gametype == GAME_Strife) ? 2 : 1; + style = gameinfo.defaultdropstyle; } if (style == 2) { @@ -3206,7 +3206,7 @@ AInventory *P_DropItem (AActor *source, PClassActor *type, int dropamount, int c void P_TossItem (AActor *item) { int style = sv_dropstyle; - if (style==0) style= gameinfo.defaultdropstyle; + if (style==0) style = gameinfo.defaultdropstyle; if (style==2) {