Moderators: Nexuiz Moderators, Moderators, Ladder Moderators
kozak6 wrote:I'd join in if there were any point in doing so.
tChr wrote:
- Code: Select all
function pointRangeOk ($session_id, $enemy_id) {
global £prefix, $conn, $pointrange;
if ((get_playerpoints($enemy_id) - get_playerpoints($session_id)) <= $pointrange) return true;
return false;
}
function pointRangeOk ($session_id, $enemy_id) {
global $prefix, $conn, $pointrange;
return (get_playerpoints($enemy_id) - get_playerpoints($session_id)) <= $pointrange;
}
KadaverJack wrote:tChr wrote:
- Code: Select all
function pointRangeOk ($session_id, $enemy_id) {
global £prefix, $conn, $pointrange;
if ((get_playerpoints($enemy_id) - get_playerpoints($session_id)) <= $pointrange) return true;
return false;
}
I see bloat there!
I would suggest:
- Code: Select all
function pointRangeOk ($session_id, $enemy_id) {
global $prefix, $conn, $pointrange;
return (get_playerpoints($enemy_id) - get_playerpoints($session_id)) <= $pointrange;
}
function pointRangeOk ($session_id, $enemy_id, $pointrange) {
return (get_playerpoints($enemy_id) - get_playerpoints($session_id)) <= $pointrange;
}
Return to Nexuiz Ladders - 1on1
Users browsing this forum: No registered users and 1 guest