mirror of
https://github.com/chocolate-doom/research.git
synced 2024-11-10 07:11:34 +00:00
Don't use NULL for invalid offsets.
Subversion-branch: /research Subversion-revision: 1893
This commit is contained in:
parent
2af089c09f
commit
b859b61cbd
2 changed files with 3 additions and 7 deletions
|
@ -12,7 +12,7 @@ static HHEActionPointer action_pointers[] = {
|
||||||
{ { 115456, 117648, 117888 }, "A_BoltSpark" },
|
{ { 115456, 117648, 117888 }, "A_BoltSpark" },
|
||||||
{ { 77344, 79808, 79872 }, "A_BossDeath" },
|
{ { 77344, 79808, 79872 }, "A_BossDeath" },
|
||||||
{ { 69328, 71856, 71920 }, "A_Chase" },
|
{ { 69328, 71856, 71920 }, "A_Chase" },
|
||||||
{ { NULL, 80976, 81040 }, "A_CheckBurnGone" },
|
{ { 0, 80976, 81040 }, "A_CheckBurnGone" },
|
||||||
{ { 78480, 80944, 81008 }, "A_CheckSkullDone" },
|
{ { 78480, 80944, 81008 }, "A_CheckSkullDone" },
|
||||||
{ { 78448, 80912, 80976 }, "A_CheckSkullFloor" },
|
{ { 78448, 80912, 80976 }, "A_CheckSkullFloor" },
|
||||||
{ { 71376, 73888, 73952 }, "A_ChicAttack" },
|
{ { 71376, 73888, 73952 }, "A_ChicAttack" },
|
||||||
|
@ -86,7 +86,7 @@ static HHEActionPointer action_pointers[] = {
|
||||||
{ { 111920, 114240, 114480 }, "A_Raise" },
|
{ { 111920, 114240, 114480 }, "A_Raise" },
|
||||||
{ { 111696, 114016, 114256 }, "A_ReFire" },
|
{ { 111696, 114016, 114256 }, "A_ReFire" },
|
||||||
{ { 77056, 79520, 79584 }, "A_RemovePod" },
|
{ { 77056, 79520, 79584 }, "A_RemovePod" },
|
||||||
{ { 116480, NULL, NULL }, "A_RemovedPhoenixFunc" },
|
{ { 116480, 0, 0 }, "A_RemovedPhoenixFunc" },
|
||||||
{ { 81952, 84464, 84528 }, "A_RestoreArtifact" },
|
{ { 81952, 84464, 84528 }, "A_RestoreArtifact" },
|
||||||
{ { 82048, 84544, 84608 }, "A_RestoreSpecialThing1" },
|
{ { 82048, 84544, 84608 }, "A_RestoreSpecialThing1" },
|
||||||
{ { 82128, 84592, 84656 }, "A_RestoreSpecialThing2" },
|
{ { 82128, 84592, 84656 }, "A_RestoreSpecialThing2" },
|
||||||
|
|
|
@ -36,11 +36,7 @@ end
|
||||||
|
|
||||||
def format_func_offsets(offsets)
|
def format_func_offsets(offsets)
|
||||||
formatted = offsets.map do |offset|
|
formatted = offsets.map do |offset|
|
||||||
if offset == 0
|
sprintf("%6i", offset)
|
||||||
" NULL"
|
|
||||||
else
|
|
||||||
sprintf("%6i", offset)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
"{ " + formatted.join(", ") + " }"
|
"{ " + formatted.join(", ") + " }"
|
||||||
|
|
Loading…
Reference in a new issue