Update for 2018 release

This commit is contained in:
Rumble
2018-01-10 02:56:13 +01:00
parent 0bb51e2bc2
commit 544afc796b
6 changed files with 28 additions and 252 deletions

View File

@@ -708,10 +708,10 @@ void sedit_parse(struct descriptor_data *d, char *arg)
S_CLOSE2(OLC_SHOP(d)) = LIMIT(atoi(arg), 0, 28);
break;
case SEDIT_BUY_PROFIT:
sscanf(arg, "%lf", &S_BUYPROFIT(OLC_SHOP(d)));
sscanf(arg, "%f", &S_BUYPROFIT(OLC_SHOP(d)));
break;
case SEDIT_SELL_PROFIT:
sscanf(arg, "%lf", &S_SELLPROFIT(OLC_SHOP(d)));
sscanf(arg, "%f", &S_SELLPROFIT(OLC_SHOP(d)));
break;
case SEDIT_TYPE_MENU:
OLC_VAL(d) = LIMIT(atoi(arg), 0, NUM_ITEM_TYPES - 1);