diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 52da3d7a4..da17db425 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -359,6 +359,7 @@ int tileInGroup(int group, int tilenum) const char *ExtGetSectorCaption(short sectnum) { + static char tempbuf[1024]; if (qsetmode != 200 && (!(onnames==1 || onnames==4 || onnames==7) || (onnames==8))) { tempbuf[0] = 0; @@ -451,6 +452,7 @@ const char *ExtGetSectorCaption(short sectnum) const char *ExtGetWallCaption(short wallnum) { + static char tempbuf[1024]; if (!(onnames==2 || onnames==4)) { tempbuf[0] = 0; @@ -472,6 +474,7 @@ const char *ExtGetWallCaption(short wallnum) const char *SectorEffectorText(short spritenum) { + static char tempbuf[1024]; switch (sprite[spritenum].lotag) { case 0: @@ -582,6 +585,7 @@ const char *SectorEffectorText(short spritenum) const char *ExtGetSpriteCaption(short spritenum) { + static char tempbuf[1024]; if ((onnames!=5 && onnames!=6 &&(!(onnames==3 || onnames==4 || onnames==7 || onnames==8))) || (onnames==7 && sprite[spritenum].picnum!=1)) { tempbuf[0] = 0; @@ -2935,6 +2939,7 @@ static void Keys3d(void) /* start Mapster32 */ + /* if (sidemode != 0) { setviewback(); @@ -2949,150 +2954,7 @@ static void Keys3d(void) rotatesprite(160<<16,170<<16,65536,(100-horiz+1024)<<3,1153,0,0,2,0,0,0,0); } - - if (usedcount && !helpon) - { - if (searchstat!=3) - { - count=0; - for (i=0;i 0) - { - if (sprite[searchwall].picnum==SECTOREFFECTOR) - Bsprintf(lines[num++],"^251Sprite %d^31 %s",searchwall,SectorEffectorText(searchwall)); - else Bsprintf(lines[num++],"^251Sprite %d^31 %s",searchwall,names[sprite[searchwall].picnum]); - } - else Bsprintf(lines[num++],"^251Sprite %d^31, picnum %d",searchwall,sprite[searchwall].picnum); - Bsprintf(lines[num++],"Elevation:%d",getflorzofslope(searchsector,sprite[searchwall].x,sprite[searchwall].y)-sprite[searchwall].z); - break; - } - } - x=WIND1X;y=WIND1Y; - x*=xdimgame/320.; - y*=ydimgame/200.; - y+=(ydimgame>>6)*8; - if (getmessageleng) - { - while (num < 4) - lines[num++][0] = 0; - Bsprintf(lines[num++],"^251%s",getmessage); - } - begindrawing(); - for (i=0;i640?0:1); - printext256(x,y,whitecol,-1,lines[i],xdimgame>640?0:1); - y+=ydimgame>>6; - } - enddrawing(); - } - +*/ if (keystatus[KEYSC_QUOTE] && keystatus[KEYSC_V]) // ' V { keystatus[KEYSC_V] = 0; @@ -7737,6 +7599,151 @@ void ExtAnalyzeSprites(void) int i, k; spritetype *tspr; int frames=0, l; + int count, nexti; + short statnum = 0; + + if (usedcount && !helpon) + { + if (searchstat!=3) + { + count=0; + for (i=0;i 0) + { + if (sprite[searchwall].picnum==SECTOREFFECTOR) + Bsprintf(lines[num++],"^251Sprite %d^31 %s",searchwall,SectorEffectorText(searchwall)); + else Bsprintf(lines[num++],"^251Sprite %d^31 %s",searchwall,names[sprite[searchwall].picnum]); + } + else Bsprintf(lines[num++],"^251Sprite %d^31, picnum %d",searchwall,sprite[searchwall].picnum); + Bsprintf(lines[num++],"Elevation:%d",getflorzofslope(searchsector,sprite[searchwall].x,sprite[searchwall].y)-sprite[searchwall].z); + break; + } + } + x=WIND1X;y=WIND1Y; + x*=xdimgame/320.; + y*=ydimgame/200.; + y+=(ydimgame>>6)*8; + if (getmessageleng) + { + while (num < 4) + lines[num++][0] = 0; + Bsprintf(lines[num++],"^251%s",getmessage); + } + begindrawing(); + for (i=0;i640?0:1); + printext256(x,y,whitecol,-1,lines[i],xdimgame>640?0:1); + y+=ydimgame>>6; + } + enddrawing(); + } for (i=0,tspr=&tsprite[0];i