SW: More TrackerCast

git-svn-id: https://svn.eduke32.com/eduke32@7525 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-04-08 06:27:39 +00:00 committed by Christoph Oelckers
parent bc96cd998d
commit 7f3052c662
4 changed files with 15 additions and 16 deletions

View file

@ -1045,7 +1045,6 @@ void CON_SpriteDetail(void)
{ {
char base[80]; char base[80];
int16_t op1=0; int16_t op1=0;
SPRITEp sp;
short i; short i;
// Format: showsprite [SpriteNum] // Format: showsprite [SpriteNum]
@ -1057,7 +1056,7 @@ void CON_SpriteDetail(void)
} }
if (!CheckValidSprite(op1)) return; if (!CheckValidSprite(op1)) return;
sp = &sprite[op1]; auto const sp = (uspritetype const *)&sprite[op1];
CON_ConMessage("x = %d, y = %d, z = %d",sp->x,sp->y,sp->z); CON_ConMessage("x = %d, y = %d, z = %d",sp->x,sp->y,sp->z);
CON_ConMessage("cstat = %d, picnum = %d",sp->cstat,sp->picnum); CON_ConMessage("cstat = %d, picnum = %d",sp->cstat,sp->picnum);

View file

@ -2688,12 +2688,12 @@ ExtGetSpriteCaption(short spritenum)
sprintf(tempbuf, "%s%s", p, multi_str); sprintf(tempbuf, "%s%s", p, multi_str);
else else
sprintf(tempbuf, "%s%s%d,%d,%d,%d,%d,%d", p, multi_str, sprintf(tempbuf, "%s%s%d,%d,%d,%d,%d,%d", p, multi_str,
SPRITE_TAG1(spritenum), TrackerCast(SPRITE_TAG1(spritenum)),
SPRITE_TAG2(spritenum), TrackerCast(SPRITE_TAG2(spritenum)),
SPRITE_TAG3(spritenum), TrackerCast(SPRITE_TAG3(spritenum)),
SPRITE_TAG4(spritenum), TrackerCast(SPRITE_TAG4(spritenum)),
SPRITE_TAG5(spritenum), TrackerCast(SPRITE_TAG5(spritenum)),
SPRITE_TAG6(spritenum)); TrackerCast(SPRITE_TAG6(spritenum)));
break; break;
case CAPTION_ALL: case CAPTION_ALL:
@ -2704,12 +2704,12 @@ ExtGetSpriteCaption(short spritenum)
sprintf(tempbuf, "%s%s", p, multi_str); sprintf(tempbuf, "%s%s", p, multi_str);
else else
sprintf(tempbuf, "%s%s%d,%d,%d,%d,%d,%d,%d,%d,%d,%d", p, multi_str, sprintf(tempbuf, "%s%s%d,%d,%d,%d,%d,%d,%d,%d,%d,%d", p, multi_str,
SPRITE_TAG1(spritenum), TrackerCast(SPRITE_TAG1(spritenum)),
SPRITE_TAG2(spritenum), TrackerCast(SPRITE_TAG2(spritenum)),
SPRITE_TAG3(spritenum), TrackerCast(SPRITE_TAG3(spritenum)),
SPRITE_TAG4(spritenum), TrackerCast(SPRITE_TAG4(spritenum)),
SPRITE_TAG5(spritenum), TrackerCast(SPRITE_TAG5(spritenum)),
SPRITE_TAG6(spritenum), TrackerCast(SPRITE_TAG6(spritenum)),
SPRITE_TAG7(spritenum), SPRITE_TAG7(spritenum),
SPRITE_TAG8(spritenum), SPRITE_TAG8(spritenum),
SPRITE_TAG9(spritenum), SPRITE_TAG9(spritenum),

View file

@ -1043,7 +1043,7 @@ ActorTestSpawn(SPRITEp sp)
default: c = "?"; break; default: c = "?"; break;
} }
buildprintf("WARNING: skill-masked %s at %d,%d,%d not being killed because it " buildprintf("WARNING: skill-masked %s at %d,%d,%d not being killed because it "
"activates something\n", c,sp->x,sp->y,sp->z); "activates something\n", c, TrackerCast(sp->x), TrackerCast(sp->y), TrackerCast(sp->z));
return TRUE; return TRUE;
} }

View file

@ -634,7 +634,7 @@ TrackSetup(void)
if (t->NumPoints == 0) if (t->NumPoints == 0)
{ {
int i, nexti; int i, nexti;
SPRITEp sp = &sprite[headspritestat[STAT_TRACK+ndx]]; auto const sp = (uspritetype const *)&sprite[headspritestat[STAT_TRACK+ndx]];
buildprintf("WARNING: Did not find first point of Track Number %d, x %d, y %d", ndx, sp->x, sp->y); buildprintf("WARNING: Did not find first point of Track Number %d, x %d, y %d", ndx, sp->x, sp->y);
for (i=headspritestat[STAT_TRACK+ndx]; i>=0; i=nexti) for (i=headspritestat[STAT_TRACK+ndx]; i>=0; i=nexti)
{ {