Fix more warnings and some style.

This commit is contained in:
Zach Langley 2014-11-07 21:19:32 -08:00
parent 4e27091e57
commit 0ded4cf7e2
6 changed files with 48 additions and 45 deletions

View file

@ -76,9 +76,9 @@ EVENTFUNC(event_countdown)
case eSPL_DARKNESS:
REMOVE_BIT_AR(ROOM_FLAGS(rnum), ROOM_DARK);
send_to_room(rnum, "The dark shroud disappates.\r\n");
break;
break;
default:
break;
break;
}
return 0;
@ -231,13 +231,13 @@ void clear_char_event_list(struct char_data * ch)
}
/* change_event_duration contributed by Ripley */
void change_event_duration(struct char_data * ch, event_id iId, long time) {
void change_event_duration(struct char_data * ch, event_id iId, long time)
{
struct event * pEvent;
struct mud_event_data * pMudEvent;
bool found = FALSE;
if (ch->events == NULL);
if (ch->events == NULL)
return;
if (ch->events->iSize == 0)
@ -246,7 +246,6 @@ void change_event_duration(struct char_data * ch, event_id iId, long time) {
clear_simple_list();
while ((pEvent = (struct event *) simple_list(ch->events)) != NULL) {
if (!pEvent->isMudEvent)
continue;