MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / InitGameInfo

Function InitGameInfo

Source/multi.cpp:502–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500} // namespace
501
502void InitGameInfo()
503{
504 sgGameInitInfo.size = sizeof(sgGameInitInfo);
505 sgGameInitInfo.dwSeed = static_cast<uint32_t>(time(nullptr));
506 sgGameInitInfo.programid = GAME_ID;
507 sgGameInitInfo.versionMajor = PROJECT_VERSION_MAJOR;
508 sgGameInitInfo.versionMinor = PROJECT_VERSION_MINOR;
509 sgGameInitInfo.versionPatch = PROJECT_VERSION_PATCH;
510 sgGameInitInfo.nTickRate = *sgOptions.Gameplay.tickRate;
511 sgGameInitInfo.bRunInTown = *sgOptions.Gameplay.runInTown ? 1 : 0;
512 sgGameInitInfo.bTheoQuest = *sgOptions.Gameplay.theoQuest ? 1 : 0;
513 sgGameInitInfo.bCowQuest = *sgOptions.Gameplay.cowQuest ? 1 : 0;
514 sgGameInitInfo.bFriendlyFire = *sgOptions.Gameplay.friendlyFire ? 1 : 0;
515 sgGameInitInfo.fullQuests = (!gbIsMultiplayer || *sgOptions.Gameplay.multiplayerFullQuests) ? 1 : 0;
516}
517
518void NetSendLoPri(int playerId, const byte *data, size_t size)
519{

Callers 2

NetInitFunction · 0.85
selgame_Password_SelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected