mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
Fixed: No sprites were loaded for Build maps
This commit is contained in:
parent
a1dfdf0fc7
commit
f3d8edb4d8
1 changed files with 5 additions and 0 deletions
|
@ -687,6 +687,8 @@ static int LoadSprites (spritetype *sprites, Xsprite *xsprites, int numsprites,
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
|
memset(mapthings, 0, sizeof(*mapthings)*numsprites);
|
||||||
|
|
||||||
for (int i = 0; i < numsprites; ++i)
|
for (int i = 0; i < numsprites; ++i)
|
||||||
{
|
{
|
||||||
mapthings[count].thingid = 0;
|
mapthings[count].thingid = 0;
|
||||||
|
@ -699,6 +701,9 @@ static int LoadSprites (spritetype *sprites, Xsprite *xsprites, int numsprites,
|
||||||
mapthings[count].flags = MTF_SINGLE|MTF_COOPERATIVE|MTF_DEATHMATCH;
|
mapthings[count].flags = MTF_SINGLE|MTF_COOPERATIVE|MTF_DEATHMATCH;
|
||||||
mapthings[count].special = 0;
|
mapthings[count].special = 0;
|
||||||
mapthings[count].gravity = FRACUNIT;
|
mapthings[count].gravity = FRACUNIT;
|
||||||
|
mapthings[count].RenderStyle = STYLE_Count;
|
||||||
|
mapthings[count].alpha = -1;
|
||||||
|
mapthings[count].health = -1;
|
||||||
|
|
||||||
if (xsprites != NULL && sprites[i].lotag == 710)
|
if (xsprites != NULL && sprites[i].lotag == 710)
|
||||||
{ // Blood ambient sound
|
{ // Blood ambient sound
|
||||||
|
|
Loading…
Reference in a new issue