- Increased the StrifeTypes array to 999 entries so that custom WADs have

more flexibility.



SVN r131 (trunk)
This commit is contained in:
Christoph Oelckers 2006-05-19 21:31:25 +00:00
parent cf63f2c28e
commit 3431564b02
4 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
May 19, 2006 (Changes by Graf Zahl)
- Increased the StrifeTypes array to 999 entries so that custom WADs have
more flexibility when defining dialogs.
May 18, 2006 May 18, 2006
- Added a check against rw_havelow in the "sky hack" part of R_NewWall(). - Added a check against rw_havelow in the "sky hack" part of R_NewWall().
This prevents the front ceiling from being moved up if there has been no This prevents the front ceiling from being moved up if there has been no

View file

@ -65,7 +65,7 @@ TArray<FStrifeDialogueNode *> StrifeDialogues;
// to their index in the mobjinfo table. This table indexes all // to their index in the mobjinfo table. This table indexes all
// the Strife actor types in the order Strife had them and is // the Strife actor types in the order Strife had them and is
// initialized as part of the actor's setup in infodefaults.cpp. // initialized as part of the actor's setup in infodefaults.cpp.
const PClass *StrifeTypes[344]; const PClass *StrifeTypes[999];
static menu_t ConversationMenu; static menu_t ConversationMenu;
static TArray<menuitem_t> ConversationItems; static TArray<menuitem_t> ConversationItems;

View file

@ -54,7 +54,7 @@ extern TArray<FStrifeDialogueNode *> StrifeDialogues;
// to their index in the mobjinfo table. This table indexes all // to their index in the mobjinfo table. This table indexes all
// the Strife actor types in the order Strife had them and is // the Strife actor types in the order Strife had them and is
// initialized as part of the actor's setup in infodefaults.cpp. // initialized as part of the actor's setup in infodefaults.cpp.
extern const PClass *StrifeTypes[344]; extern const PClass *StrifeTypes[999];
void P_LoadStrifeConversations (const char *mapname); void P_LoadStrifeConversations (const char *mapname);
void P_FreeStrifeConversations (); void P_FreeStrifeConversations ();

View file

@ -2305,9 +2305,9 @@ static void ActorConversationID (AActor *defaults, Baggage &bag)
if (convid==-1) return; if (convid==-1) return;
} }
if (convid<0 || convid>344) if (convid<0 || convid>999)
{ {
SC_ScriptError ("ConversationID must be in the range [0,344]"); SC_ScriptError ("ConversationID must be in the range [0,999]");
} }
else StrifeTypes[convid] = bag.Info->Class; else StrifeTypes[convid] = bag.Info->Class;
} }