mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-27 03:16:09 +01:00
Fix more warnings and some style.
This commit is contained in:
parent
4e27091e57
commit
0ded4cf7e2
6 changed files with 48 additions and 45 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue