mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
fix for previous commit, make sure .ctype is valid
This commit is contained in:
@@ -78,7 +78,8 @@ 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;
|
||||||
|
|
||||||
STKM_set_element(sim, playerp, parts[i].ctype);
|
if (parts[i].ctype && sim->IsValidElement(parts[i].ctype))
|
||||||
|
STKM_set_element(sim, playerp, parts[i].ctype);
|
||||||
playerp->frames++;
|
playerp->frames++;
|
||||||
|
|
||||||
//Temperature handling
|
//Temperature handling
|
||||||
|
Reference in New Issue
Block a user