From 4d4cf96b97a1e8264e2f8d5e7342b82402d7a745 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sat, 10 May 2025 19:45:53 -0500 Subject: [PATCH] Fix generic food wrong sprite --- src/scenario/scenario.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/scenario/scenario.cpp b/src/scenario/scenario.cpp index ee7f609c..f1c04142 100644 --- a/src/scenario/scenario.cpp +++ b/src/scenario/scenario.cpp @@ -468,13 +468,17 @@ cItem cScenario::return_treasure(int loot, bool allow_junk) const { case FOOD: // food doesn't always appear if(get_ran(1,0,2) == 1) { + // preset food is bread and drumstick (small object 72) treas = cItem(ITEM_FOOD); + // the next 2 graphics are also food treas.graphic_num += get_ran(1,0,2); treas.item_level = get_ran(1,5,10); + + // meat of some kind: if(get_ran(1,0,9) == 5) - treas.graphic_num = 113; + treas.graphic_num = 123; if(get_ran(1,0,9) == 5) - treas.graphic_num = 114; + treas.graphic_num = 124; } break; case WEAPON: