MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / BailOnMultiplayer

Function BailOnMultiplayer

Descent3/multi.cpp:1858–1869  ·  view source on GitHub ↗

Gets us out of a multiplayer game in a hurry...useful for when things are screwed

Source from the content-addressed store, hash-verified

1856
1857// Gets us out of a multiplayer game in a hurry...useful for when things are screwed
1858void BailOnMultiplayer(const char *message) {
1859 Int3(); // Get Jason
1860
1861 // Show message
1862 if (message == NULL)
1863 ShowProgressScreen(TXT_MULTI_DATACORRUPT);
1864 else
1865 ShowProgressScreen(message);
1866
1867 MultiLeaveGame();
1868 Sleep(2000);
1869}
1870
1871// Adds the trunctuated position data to an outgoing packet
1872void MultiAddPositionData(vector *pos, uint8_t *data, int *count) {

Callers 7

MultiSendRobotFireWeaponFunction · 0.85
MultiDoPlayerFunction · 0.85
MultiDoObjectFunction · 0.85
MultiStuffObjAnimUpdateFunction · 0.85
MultiStuffTurretUpdateFunction · 0.85
MultiDoBashPlayerShipFunction · 0.85

Calls 3

ShowProgressScreenFunction · 0.85
MultiLeaveGameFunction · 0.85
SleepFunction · 0.50

Tested by

no test coverage detected