
Pages:<< prev 1 next >>


Off the Edge of the Map

GroupAdministrators
Posts1,199
JoinedMar 21, 2006
Bug: Hail may transport a character to someone's home.
Danger: Low - A player may get attacked in thier own home.
Found by: Keberus
Fixed by: Keberus
---
misc.c, do_hail
Locate:
Change it to:
This will ensure that a character doesn't accidentally get tranferred to another player's home.
Danger: Low - A player may get attacked in thier own home.
Found by: Keberus
Fixed by: Keberus
---
misc.c, do_hail
Locate:
for( vnum = ch->in_room->area->low_r_vnum; vnum <= ch->in_room->area->hi_r_vnum; vnum++ ) { room = get_room_index( vnum ); if( room != NULL ) { if( IS_SET( room->room_flags, ROOM_HOTEL ) ) break; else room = NULL; } }
Change it to:
for( vnum = ch->in_room->area->low_r_vnum; vnum <= ch->in_room->area->hi_r_vnum; vnum++ ) { room = get_room_index( vnum ); if( room != NULL ) { if( IS_SET( room->room_flags, ROOM_HOTEL ) && !IS_SET( room->room_flags, ROOM_PLR_HOME ) ) break; else room = NULL; } }
This will ensure that a character doesn't accidentally get tranferred to another player's home.
Pages:<< prev 1 next >>