Skip to content

Commit

Permalink
Change gameid to prevent overlap in MP with upstream
Browse files Browse the repository at this point in the history
Games are segregated on version number and gameid.
The gameid consists in 4 bytes characters describing Hellfire, Hellfire
Spawn, Diablo or Diablo Spawn.

To get a segregation between this mod and upstream and keep the internal
segregation between Hellfire, Hellfire Spawn etc.. this patch does a
bitwise OR between the original 4 bytes and "IRON".
  • Loading branch information
sixcy committed Sep 6, 2022
1 parent ee897b4 commit 8f08802
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/diablo.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ constexpr uint32_t GameIdDiabloFull = LoadBE32("DRTL");
constexpr uint32_t GameIdDiabloSpawn = LoadBE32("DSHR");
constexpr uint32_t GameIdHellfireFull = LoadBE32("HRTL");
constexpr uint32_t GameIdHellfireSpawn = LoadBE32("HSHR");
#define GAME_ID (gbIsHellfire ? (gbIsSpawn ? GameIdHellfireSpawn : GameIdHellfireFull) : (gbIsSpawn ? GameIdDiabloSpawn : GameIdDiabloFull))
constexpr uint32_t GameIdIronman = LoadBE32("IRON");
#define GAME_ID ((gbIsHellfire ? (gbIsSpawn ? GameIdHellfireSpawn : GameIdHellfireFull) : (gbIsSpawn ? GameIdDiabloSpawn : GameIdDiabloFull)) | GameIdIronman)

#define NUMLEVELS 25

Expand Down

0 comments on commit 8f08802

Please sign in to comment.