Don't use NULL for invalid offsets.

Subversion-branch: /research
Subversion-revision: 1893
This commit is contained in:
Simon Howard 2010-04-18 14:20:41 +00:00
parent 2af089c09f
commit b859b61cbd
2 changed files with 3 additions and 7 deletions

View File

@ -12,7 +12,7 @@ static HHEActionPointer action_pointers[] = {
{ { 115456, 117648, 117888 }, "A_BoltSpark" },
{ { 77344, 79808, 79872 }, "A_BossDeath" },
{ { 69328, 71856, 71920 }, "A_Chase" },
{ { NULL, 80976, 81040 }, "A_CheckBurnGone" },
{ { 0, 80976, 81040 }, "A_CheckBurnGone" },
{ { 78480, 80944, 81008 }, "A_CheckSkullDone" },
{ { 78448, 80912, 80976 }, "A_CheckSkullFloor" },
{ { 71376, 73888, 73952 }, "A_ChicAttack" },
@ -86,7 +86,7 @@ static HHEActionPointer action_pointers[] = {
{ { 111920, 114240, 114480 }, "A_Raise" },
{ { 111696, 114016, 114256 }, "A_ReFire" },
{ { 77056, 79520, 79584 }, "A_RemovePod" },
{ { 116480, NULL, NULL }, "A_RemovedPhoenixFunc" },
{ { 116480, 0, 0 }, "A_RemovedPhoenixFunc" },
{ { 81952, 84464, 84528 }, "A_RestoreArtifact" },
{ { 82048, 84544, 84608 }, "A_RestoreSpecialThing1" },
{ { 82128, 84592, 84656 }, "A_RestoreSpecialThing2" },

View File

@ -36,12 +36,8 @@ end
def format_func_offsets(offsets)
formatted = offsets.map do |offset|
if offset == 0
" NULL"
else
sprintf("%6i", offset)
end
end
"{ " + formatted.join(", ") + " }"
end