Fix more warnings and some style.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user