`item::SoftenMaterial()` wrong visual fix

https://attnam.com/topics/item-SoftenMaterial-wrong-visual-fix

The Cathedral of Attnam > IVAN Development

#1 Mar 9, 6:31 pm Hide

vasiliy

`item::SoftenMaterial()` should call this at the end:
  //SignalVolumeAndWeightChange();
  //CalculateEmitation(); // dunno; might be needed, might be not
  //UpdatePictures();
  SendNewDrawAndMemorizedUpdateRequest();
i'm not completely sure about first two signals, but they won't hurt. and without the last two lines softened item will not change it's appearance until the next map redraw/item update.

it is not done in "harden material" because there is no "wand of harden material", so no "beam of hardening". therefore we can only change the items in the inventory, and it looks like they don't need such update. i think that signal and emitation recalcuation is done by material changing, so it's excessive here, but those calls won't hurt either, and it's better to be on the safe side.

p.s.: maybe even `UpdatePicture()` is not needed, and we need only `SendNewDrawAndMemorizedUpdateRequest();` call. it seems that `SetMainMaterial()` does everything for us except this. so i commented the calls in the code above — if it won't work right, it's easier to uncomment than to remember what we have to call.
#2 Mar 13, 5:08 am Hide

red_kangaroo

Thanks!