Fix permanent stickman death.
This commit is contained in:
parent
def10c41ae
commit
a23138fbbe
@ -1,6 +1,7 @@
|
|||||||
#include <powder.h>
|
#include <powder.h>
|
||||||
|
|
||||||
int update_SPAWN(UPDATE_FUNC_ARGS) {
|
int update_SPAWN(UPDATE_FUNC_ARGS) {
|
||||||
|
ISSPAWN1 = 1;
|
||||||
if (death)
|
if (death)
|
||||||
{
|
{
|
||||||
playerspawn = create_part(-1,x,y,PT_STKM);
|
playerspawn = create_part(-1,x,y,PT_STKM);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include <powder.h>
|
#include <powder.h>
|
||||||
|
|
||||||
int update_SPAWN2(UPDATE_FUNC_ARGS) {
|
int update_SPAWN2(UPDATE_FUNC_ARGS) {
|
||||||
|
ISSPAWN2 = 1;
|
||||||
if (death2)
|
if (death2)
|
||||||
{
|
{
|
||||||
player2spawn = create_part(-1,x,y,PT_STKM2);
|
player2spawn = create_part(-1,x,y,PT_STKM2);
|
||||||
|
@ -487,6 +487,7 @@ int parse_save(void *save, int size, int replace, int x0, int y0)
|
|||||||
memset(vx, 0, sizeof(vx));
|
memset(vx, 0, sizeof(vx));
|
||||||
memset(vy, 0, sizeof(vy));
|
memset(vy, 0, sizeof(vy));
|
||||||
memset(pv, 0, sizeof(pv));
|
memset(pv, 0, sizeof(pv));
|
||||||
|
death = death2 = ISSPAWN1 = ISSPAWN2 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// make a catalog of free parts
|
// make a catalog of free parts
|
||||||
@ -2032,6 +2033,7 @@ int main(int argc, char *argv[])
|
|||||||
svf_tags[0] = 0;
|
svf_tags[0] = 0;
|
||||||
svf_description[0] = 0;
|
svf_description[0] = 0;
|
||||||
gravityMode = 1;
|
gravityMode = 1;
|
||||||
|
death = death2 = 0;
|
||||||
isplayer2 = 0;
|
isplayer2 = 0;
|
||||||
isplayer = 0;
|
isplayer = 0;
|
||||||
ISSPAWN1 = 0;
|
ISSPAWN1 = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user