mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-09 01:46:29 +02:00
fix for previous commit, make sure .ctype is valid
This commit is contained in:
@@ -78,6 +78,7 @@ int Element_STKM::run_stickman(playerst *playerp, UPDATE_FUNC_ARGS) {
|
|||||||
float rocketBootsHeadEffectV = 0.3f;// stronger acceleration vertically, to counteract gravity
|
float rocketBootsHeadEffectV = 0.3f;// stronger acceleration vertically, to counteract gravity
|
||||||
float rocketBootsFeetEffectV = 0.45f;
|
float rocketBootsFeetEffectV = 0.45f;
|
||||||
|
|
||||||
|
if (parts[i].ctype && sim->IsValidElement(parts[i].ctype))
|
||||||
STKM_set_element(sim, playerp, parts[i].ctype);
|
STKM_set_element(sim, playerp, parts[i].ctype);
|
||||||
playerp->frames++;
|
playerp->frames++;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user