Skip to content

Commit

Permalink
Merge pull request #244 from spacebake/beenade_windows_fix_2024
Browse files Browse the repository at this point in the history
beenade windows fix 2024
  • Loading branch information
spacebake authored Jun 14, 2024
2 parents 2966474 + fe2a119 commit 9e6fe05
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Loungeware/objects/NahooRunner/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ function nahoo_run(m)
//You fucking died!
microgame_fail();
return nahoo_end(0);
nahoo_log("You died!")
}

// Move around
Expand Down Expand Up @@ -479,8 +478,16 @@ function nahoo_cum_process(m)
}

var empty = ((array_length(m) + 1) * (array_length(m[0]) + 1)) - walls;
flood = m;


flood = [[]];
for(var i = 0; i < array_length(m); i++)
{
for(var j = 0; j < array_length(m[0]); j++)
{
flood[i][j] = m[i][j];
}
}

for(var i = 0; i < array_length(m); i++)
{
for(var j = 0; j < array_length(m[0]); j++)
Expand Down Expand Up @@ -544,7 +551,11 @@ function nahoo_cum_process(m)

function nahoo_Array2D(w, h, def)
{
var arr = array_create(w, array_create(h, def));
var arr = array_create(w);
var len = array_length(arr);
for (var i = 0; i < len; i++) {
arr[i] = array_create(h, def);
}
return arr;
}

Expand Down

0 comments on commit 9e6fe05

Please sign in to comment.