aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/testpathfinder/textures/testpathfinder_waypoint_start.png
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2021-04-05 13:38:50 +0200
committerGitHub <noreply@github.com>2021-04-05 13:38:50 +0200
commitc11208c4b55bc6b17e523761befed6156027edf9 (patch)
tree6ab740af2e455ae16239d7e429c7d5b9e26f8177 /games/devtest/mods/testpathfinder/textures/testpathfinder_waypoint_start.png
parentf0bad0e2badbb7d4777aac7de1b50239bca4010a (Game: Scale damage flash to max HP
The flash intensity is calculated proportionally to the maximal HP.
Diffstat (limited to 'games/devtest/mods/testpathfinder/textures/testpathfinder_waypoint_start.png')
0 files changed, 0 insertions, 0 deletions
span class="hl opt">; if (G(L)->gcstate == GCSsweepstring) return; /* cannot resize during GC traverse */ newhash = luaM_newvector(L, newsize, GCObject *); tb = &G(L)->strt; for (i=0; i<newsize; i++) newhash[i] = NULL; /* rehash */ for (i=0; i<tb->size; i++) { GCObject *p = tb->hash[i]; while (p) { /* for each node in the list */ GCObject *next = p->gch.next; /* save next */ unsigned int h = gco2ts(p)->hash; int h1 = lmod(h, newsize); /* new position */ lua_assert(cast_int(h%newsize) == lmod(h, newsize)); p->gch.next = newhash[h1]; /* chain it */ newhash[h1] = p; p = next; } }