[Scummvm-git-logs] scummvm master -> dddd040b217f3d138ade061a6dc897b730122304
mduggan
mgithub at guarana.org
Sun Mar 28 04:04:13 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
dddd040b21 ULTIMA8: Remove unused static function
Commit: dddd040b217f3d138ade061a6dc897b730122304
https://github.com/scummvm/scummvm/commit/dddd040b217f3d138ade061a6dc897b730122304
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2021-03-28T13:04:05+09:00
Commit Message:
ULTIMA8: Remove unused static function
Changed paths:
engines/ultima/ultima8/gumps/cru_inventory_gump.cpp
diff --git a/engines/ultima/ultima8/gumps/cru_inventory_gump.cpp b/engines/ultima/ultima8/gumps/cru_inventory_gump.cpp
index 0c6cd18f5d..c7abfc49ea 100644
--- a/engines/ultima/ultima8/gumps/cru_inventory_gump.cpp
+++ b/engines/ultima/ultima8/gumps/cru_inventory_gump.cpp
@@ -63,38 +63,6 @@ void CruInventoryGump::InitGump(Gump *newparent, bool take_focus) {
_inventoryText->InitGump(this, false);
}
-// TODO: This is a bit of a hack.. should be configured
-// in the weapon ini file.
-static uint16 getDisplayFrameForShape(uint16 shapeno) {
- switch (shapeno) {
- case 0x351:
- return 0x0;
- case 0x4D4:
- return 0x1;
- case 0x52D:
- return 0x2;
- case 0x52E:
- return 0x3;
- case 0x582:
- return 0x19;
- case 0x52F:
- return 0x5;
- case 0x55F:
- return 0x18;
- case 0x530:
- return 0x7;
- case 0x3A2:
- return 0x16;
- case 0x3A3:
- return 0x15;
- case 0x3A4:
- return 0x17;
- default:
- warning("No inventory gump frame for shape %d", shapeno);
- return 0;
- }
-}
-
void CruInventoryGump::PaintThis(RenderSurface *surf, int32 lerp_factor, bool scaled) {
const MainActor *a = getMainActor();
if (!a) {
More information about the Scummvm-git-logs
mailing list