Tomahawk Posted June 24, 2020 Share Posted June 24, 2020 Is it possible to change area_size based on mapflag? I'm trying to change clif.cpp with no luck if(mapdata->flag[MF_NEWAREA]) { map_foreachinallarea(clif_send_sub, bl->m, bl->x-20, bl->y-20, bl->x+20, bl->y+20, BL_PC, buf, len, bl, type);} else { map_foreachinallarea(clif_send_sub, bl->m, bl->x-AREA_SIZE, bl->y-AREA_SIZE, bl->x+AREA_SIZE, bl->y+AREA_SIZE, BL_PC, buf, len, bl, type);} break; Map server crashes on start. Thank you for reading. Quote Link to comment Share on other sites More sharing options...
Is it possible to change area_size based on mapflag? I'm trying to change clif.cpp with no luck
if(mapdata->flag[MF_NEWAREA]) { map_foreachinallarea(clif_send_sub, bl->m, bl->x-20, bl->y-20, bl->x+20, bl->y+20, BL_PC, buf, len, bl, type);} else { map_foreachinallarea(clif_send_sub, bl->m, bl->x-AREA_SIZE, bl->y-AREA_SIZE, bl->x+AREA_SIZE, bl->y+AREA_SIZE, BL_PC, buf, len, bl, type);} break;Map server crashes on start. Thank you for reading.
Link to comment
Share on other sites