Cleaned up the mapflag system (#2943)
* Created setter and getter functions. * Adjusted all calls to use these functions. * Converted mapflags to C++ map container. * Converted drop_list to vector. * Converted skill_damage ERS into vector and increased limit from UINT8 to UINT16. * Cleaned up several functions to be more dynamic to reduce redundancy that was all over the place. * Renamed nosumstarmiracle to nosunmoonstarmiracle. * Adjusted skill_damage mapflag to use proper defined constants. * Refactored map index into a vector. Thanks to @Lemongrass3110 for a lot of help and @secretdataz!
This commit is contained in:
@@ -86,7 +86,7 @@ int chat_createpcchat(struct map_session_data* sd, const char* title, const char
|
||||
if( sd->state.vending || sd->state.buyingstore ) // not chat, when you already have a store open
|
||||
return 0;
|
||||
|
||||
if( map[sd->bl.m].flag.nochat ) {
|
||||
if( map_getmapflag(sd->bl.m, MF_NOCHAT) ) {
|
||||
clif_displaymessage(sd->fd, msg_txt(sd,281));
|
||||
return 0; //Can't create chatrooms on this map.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user