fix some billing and pricing issues when globs coalesce
payment issue caused by glob coalescing glob pricing did not consider coalesced weight
This commit is contained in:
@@ -720,7 +720,8 @@ struct obj **potmp, **pobj;
|
||||
otmp->age = ((otmp->age * otmp->quan) + (obj->age * obj->quan))
|
||||
/ (otmp->quan + obj->quan);
|
||||
|
||||
otmp->quan += obj->quan;
|
||||
if (!otmp->globby)
|
||||
otmp->quan += obj->quan;
|
||||
/* temporary special case for gold objects!!!! */
|
||||
if (otmp->oclass == COIN_CLASS)
|
||||
otmp->owt = weight(otmp), otmp->bknown = 0;
|
||||
|
||||
Reference in New Issue
Block a user