Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // in AGR defs:
- // BGM STUFF (globals)
- // crash happens when this is 1!!!:
- const float enable_bgm = 0; // for the StandbyList/AGR Alarm/BGM: FORK MODE
- const float post_current_playerlist_to_bgm = 0;
- // in worldspawn
- .
- .
- .
- // this sends a uri request for the standby list every 60 seconds
- if (enable_bgm) // the ONLY place this global exists!
- {
- if( fork())
- {
- while(1) // do this forever
- {
- if(agr_server & IS_TEST_SERVER )
- sleep(10);
- else
- sleep(70);
- // sends list of all connected players to the BGM
- if(post_current_playerlist_to_bgm) // post_current_playerlist_to_bgm is '0', so:
- BGMSendPlayerList(); // <- this doesnt even run!!
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement