mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
Removed dupe struct and fixed zedit_level saving --Rumble
This commit is contained in:
parent
bf451a6ece
commit
b3f404c29c
4 changed files with 7 additions and 5 deletions
|
|
@ -873,7 +873,7 @@ void zedit_parse(struct descriptor_data *d, char *arg)
|
|||
|
||||
case '3': OLC_ZONE(d)->min_level = -1;
|
||||
OLC_ZONE(d)->max_level = -1;
|
||||
OLC_ZONE(d)->age = 1;
|
||||
OLC_ZONE(d)->number = 1;
|
||||
zedit_disp_levels(d);
|
||||
break;
|
||||
|
||||
|
|
@ -890,7 +890,7 @@ void zedit_parse(struct descriptor_data *d, char *arg)
|
|||
case ZEDIT_LEV_MIN:
|
||||
pos = atoi(arg);
|
||||
OLC_ZONE(d)->min_level = MIN(MAX(pos,-1), 100);
|
||||
OLC_ZONE(d)->age = 1;
|
||||
OLC_ZONE(d)->number = 1;
|
||||
zedit_disp_levels(d);
|
||||
break;
|
||||
|
||||
|
|
@ -898,7 +898,7 @@ void zedit_parse(struct descriptor_data *d, char *arg)
|
|||
case ZEDIT_LEV_MAX:
|
||||
pos = atoi(arg);
|
||||
OLC_ZONE(d)->max_level = MIN(MAX(pos,-1), 100);
|
||||
OLC_ZONE(d)->age = 1;
|
||||
OLC_ZONE(d)->number = 1;
|
||||
zedit_disp_levels(d);
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue