bool multiplayer(bool msg) { #ifdef CLIENT // INTENSITY bool val = !ClientSystem::editingAlone; // INTENSITY #else // SERVER - the old sauer code bool val = curpeer || hasnonlocalclients(); #endif // INTENSITY end if(val && msg) conoutf(CON_ERROR, "You must be in private edit mode for that"); // INTENSITY: Message contents return val; }
bool multiplayer(bool msg) { bool val = curpeer || hasnonlocalclients(); if(val && msg) conoutf(CON_ERROR, "operation not available in multiplayer"); return val; }