Debug code to help catch the phantom nuke bug
Thu Apr 24 12:20:52 2008 Oops: bug in ../src/lib/subs/plnsub.c:1146 #3 0x080e64f4 in oops (msg=0x0, file=0x80ff1ca "../src/lib/subs/plnsub.c", line=1146) at ../src/lib/gen/log.c:141 #4 0x080bce6c in pln_damage (pp=0x8415b60, x=82, y=20, type=115 's', nukedamp=0x84158bc, noisy=1) at ../src/lib/subs/plnsub.c:1146 #5 0x080684f2 in launch_missile (pp=0x8415b60, sublaunch=0) at ../src/lib/commands/laun.c:281 #6 0x08067c79 in laun () at ../src/lib/commands/laun.c:111
This commit is contained in:
parent
cf4639fa74
commit
05e5adfac8
2 changed files with 6 additions and 0 deletions
|
@ -89,6 +89,9 @@ nuk_prewrite(int n, void *ptr)
|
||||||
}
|
}
|
||||||
|
|
||||||
getnuke(n, &nuke);
|
getnuke(n, &nuke);
|
||||||
|
if (nuke.nuk_plane != np->nuk_plane)
|
||||||
|
logerror("phantom nuke debug: nuk#%d plane %d->%d",
|
||||||
|
np->nuk_uid, nuke.nuk_plane, np->nuk_plane);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,6 +132,9 @@ pln_prewrite(int n, void *ptr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getplane(n, &plane);
|
getplane(n, &plane);
|
||||||
|
if (plane.pln_nuketype != pp->pln_nuketype)
|
||||||
|
logerror("phantom nuke debug: pln#%d nuketype %d->%d",
|
||||||
|
pp->pln_uid, plane.pln_nuketype, pp->pln_nuketype);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue