Set additional UDMF parameters on objectplaced mapthings to defaults

This commit is contained in:
lachwright 2020-09-07 13:08:22 +09:30
parent b805e10058
commit efc82ffa74
1 changed files with 4 additions and 0 deletions

View File

@ -1108,6 +1108,10 @@ static mapthing_t *OP_CreateNewMapThing(player_t *player, UINT16 type, boolean c
mt->options = (mt->z << ZSHIFT) | (UINT16)cv_opflags.value;
mt->scale = player->mo->scale;
mt->tag = 0;
memset(mt->args, 0, NUMMAPTHINGARGS*sizeof(*mt->args));
memset(mt->stringargs, 0x00, NUMMAPTHINGSTRINGARGS*sizeof(*mt->stringargs));
mt->pitch = mt->roll = 0;
return mt;
}