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

Function MultiAskforGuidebotMenu

Descent3/buddymenu.cpp:184–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184static void MultiAskforGuidebotMenu() {
185 int size_offset;
186 int count = 0;
187 uint8_t data[MAX_GAME_DATA_SIZE];
188 // Only process this if we are the client
189 if (Netgame.local_role != LR_CLIENT) {
190 Int3(); // We shouldn't be here... get Kevin
191 return;
192 }
193 size_offset = START_DATA(MP_GUIDEBOTMENU_REQUEST, data, &count);
194 MultiAddByte(GB_MENU_REQ_TEXT, data, &count);
195 END_DATA(count, data, size_offset);
196 nw_SendReliable(NetPlayers[Player_num].reliable_socket, data, count);
197}
198
199static void MultiStuffGuidebotMenuData(uint8_t *data, int *count, gb_menu *menu) {
200 int i;

Callers 1

BuddyBotDownloadDataFunction · 0.85

Calls 4

START_DATAFunction · 0.85
MultiAddByteFunction · 0.85
END_DATAFunction · 0.85
nw_SendReliableFunction · 0.85

Tested by

no test coverage detected