Skip to content

Commit

Permalink
some defines
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel authored and AJenbo committed Oct 12, 2020
1 parent ef822ae commit fd5b127
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/multi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,11 +700,11 @@ BOOL NetInit(BOOL bSinglePlayer, BOOL *pfExitProgram)
#ifdef SPAWN
ProgramData.programname = "Diablo Shareware";
#else
ProgramData.programname = "Diablo Retail";
ProgramData.programname = PROGRAM_NAME;
#endif
ProgramData.programdescription = gszVersionNumber;
ProgramData.programid = 'DRTL';
ProgramData.versionid = 42;
ProgramData.programid = GAME_ID;
ProgramData.versionid = GAME_VERSION;
ProgramData.maxplayers = MAX_PLRS;
ProgramData.initdata = &sgGameInitInfo;
ProgramData.initdatabytes = sizeof(sgGameInitInfo);
Expand Down
8 changes: 8 additions & 0 deletions defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,15 @@
#define PMSG_COUNT 8

// Diablo Retail Version Game ID
#ifdef HELLFIRE
#define GAME_ID ((int)'HRTL')
#define GAME_VERSION 34
#define PROGRAM_NAME "Hellfire Retail"
#else
#define GAME_ID ((int)'DRTL')
#define GAME_VERSION 42
#define PROGRAM_NAME "Diablo Retail"
#endif

// Diablo uses a 256 color palette
// Entry 0-127 (0x00-0x7F) are level specific
Expand Down

0 comments on commit fd5b127

Please sign in to comment.