|
From: <cn...@us...> - 2023-07-01 15:29:40
|
Revision: 1404
http://sourceforge.net/p/seq/svn/1404
Author: cn187
Date: 2023-07-01 15:29:38 +0000 (Sat, 01 Jul 2023)
Log Message:
-----------
Actually use weapons4e.h
Modified Paths:
--------------
showeq/branches/cn187_devel/src/spawn.cpp
Modified: showeq/branches/cn187_devel/src/spawn.cpp
===================================================================
--- showeq/branches/cn187_devel/src/spawn.cpp 2023-06-30 03:04:04 UTC (rev 1403)
+++ showeq/branches/cn187_devel/src/spawn.cpp 2023-07-01 15:29:38 UTC (rev 1404)
@@ -144,6 +144,12 @@
#include "weapons30.h"
};
+ // sparse array of item names (in 0x4e range), some are NULL
+ static const char* itemnames4e[] =
+ {
+#include "weapons4e.h"
+ };
+
// assume no material name found
const char *itemStr = NULL;
@@ -222,6 +228,12 @@
if (itemLo < (sizeof(itemnames30) / sizeof (char*)))
itemStr = itemnames30[itemLo];
}
+ else if (itemHi == 0x4e)
+ {
+ // retrieve pointer to item name
+ if (itemLo < (sizeof(itemnames4e) / sizeof (char*)))
+ itemStr = itemnames4e[itemLo];
+ }
// if race name exists, then return it, otherwise return a number string
if (itemStr != NULL)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|