A strange thing I discovered

  • TPT_PL
    28th Aug 2017 Member 0 Permalink
    [removed]
    Edited once by TPT_PL. Last: 3rd Jul 2023
  • LBPHacker
    28th Aug 2017 Developer 0 Permalink

    Can't reproduce and I'm just not willing to play guess today. Post the code that did that. The fact that shrapnel is not yet defined when this update function is won't cause problems. shrapnel is either a local that is assigned a valid element ID eventually or nil, in which case partCreate just fails.

    Edited 3 times by LBPHacker. Last: 28th Aug 2017
  • Ligan
    2nd Sep 2017 Member 0 Permalink

    You didn't define your element properties, right? In that case, I'm guessing it just used values from https://github.com/ThePowderToy/The-Powder-Toy/blob/master/src/simulation/elements/Element.cpp

    Where colour is set as pink (0xFF00FF) and name as "".