Skip to content

Commit

Permalink
- lotsofpopcorn
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Nov 21, 2021
1 parent 7899c6d commit 55b7c1b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/games/duke/src/sectors_r.cpp
Expand Up @@ -923,16 +923,15 @@ void activatebysector_r(int sect, DDukeActor* activator)
//
//---------------------------------------------------------------------------

static void lotsofpopcorn(DDukeActor *actor, int wallnum, int n)
static void lotsofpopcorn(DDukeActor *actor, walltype* wal, int n)
{
auto wal = &wall[wallnum];
int j, z;
int sect, a;

sect = -1;
auto sp = actor->s;

if (wallnum < 0)
if (wal == nullptr)
{
for (j = n - 1; j >= 0; j--)
{
Expand Down Expand Up @@ -1028,7 +1027,7 @@ void checkhitwall_r(DDukeActor* spr, walltype* wal, int x, int y, int z, int atw
{
updatesector(x, y, &sn); if (sn < 0) return;
wal->overpicnum = GLASS2;
lotsofpopcorn(spr, wallnum(wal), 64);
lotsofpopcorn(spr, wal, 64);
wal->cstat = 0;

if (wal->nextwall >= 0)
Expand Down

0 comments on commit 55b7c1b

Please sign in to comment.