increase energy to go up in 200 unit increments instead of 100 and max out at 3000 instead of 1200
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3779 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
90440eaf1d
commit
346e529007
|
@ -993,9 +993,9 @@ static void conference_loop(conference_member_t *member)
|
||||||
break;
|
break;
|
||||||
case '9':
|
case '9':
|
||||||
switch_mutex_lock(member->flag_mutex);
|
switch_mutex_lock(member->flag_mutex);
|
||||||
member->energy_level += 100;
|
member->energy_level += 200;
|
||||||
if (member->energy_level > 1200) {
|
if (member->energy_level > 3000) {
|
||||||
member->energy_level = 1200;
|
member->energy_level = 3000;
|
||||||
}
|
}
|
||||||
switch_mutex_unlock(member->flag_mutex);
|
switch_mutex_unlock(member->flag_mutex);
|
||||||
snprintf(msg, sizeof(msg), "Energy level %d", member->energy_level);
|
snprintf(msg, sizeof(msg), "Energy level %d", member->energy_level);
|
||||||
|
|
Loading…
Reference in New Issue