Just expand the if statement with if ( i>Type == LW_MAGIC ) using inclusive ORs...
if ( l->Type == LW_MAGIC || l->Type == LW_ARROW || l->Type == LW_BEAM )
I didn't test that code, so it could have very minor typos/typo-esque bugs. (I'm not even sure if I compiled it.) I pounded out 2500 lines or more, plus extensive testing, and deugging today, and now I'm unsure which of the requests I properly tested.
Usually, I post them, and if there is a problem, I go back and fix it, if the user requesting it, or another member doesn't do it first. That allows me to get 99% complete code into the hands of the user as soon as possible, rather than making the user wait for me to have time to proof it properly.
Edited by ZoriaRPG, 27 July 2016 - 12:08 AM.