Lines Matching refs:searchwall

139 #define SELECT_WALL() (AIMING_AT_WALL ? searchbottomwall : searchwall)
158 &SPRFLD(searchwall, Field))))
164 #define AIMED(Field) SFBASE_(Field, &WALFLD(searchwall, Field))
4164 spritetype *sp = &sprite[searchwall]; in mouseaction_movesprites()
4210 if (highlightcnt<=0 || (show2dsprite[searchwall>>3] & (1<<(searchwall&7)))==0) in mouseaction_movesprites()
4213 setsprite(searchwall, &tvec); in mouseaction_movesprites()
4376 const int32_t swappedbot = (int32_t)(w != searchwall); in Keys3d()
4379 …flags |= (yax_getnextwall(searchwall, YAX_CEILING)>=0) + 2*(yax_getnextwall(searchwall, YAX_FLOOR)… in Keys3d()
4384 … wall[searchwall].lotag, wall[searchwall].hitag, wall[searchwall].extra, 0, 0, flags); in Keys3d()
4386 dist = wallength(searchwall); in Keys3d()
4388 if (wall[searchwall].nextsector >= 0 && wall[searchwall].nextsector < numsectors) in Keys3d()
4390 int32_t nextsect = wall[searchwall].nextsector; in Keys3d()
4398 …tf(lines[num++],"Repeat: %d, %d", TrackerCast(wall[searchwall].xrepeat), TrackerCast(wall[searchw… in Keys3d()
4399 Bsprintf(lines[num++],"Overpic: %d", TrackerCast(wall[searchwall].overpicnum)); in Keys3d()
4405 if (searchwall != searchbottomwall) in Keys3d()
4406 …Bsprintf(lines[num++],"^%dWall %d ->^%d %d", editorcolors[10], searchwall, editorcolors[14], searc… in Keys3d()
4408 Bsprintf(lines[num++],"^%dWall %d", editorcolors[10], searchwall); in Keys3d()
4410 if (wall[searchwall].nextsector!=-1) in Keys3d()
4446 … drawtileinfo("Selected", WIND1X, WIND1Y, sprite[searchwall].picnum, sprite[searchwall].shade, in Keys3d()
4447 … sprite[searchwall].pal, sprite[searchwall].cstat, sprite[searchwall].lotag, in Keys3d()
4448 …sprite[searchwall].hitag, sprite[searchwall].extra,sprite[searchwall].blend, sprite[searchwall].st… in Keys3d()
4451 … TrackerCast(sprite[searchwall].xrepeat), TrackerCast(sprite[searchwall].yrepeat)); in Keys3d()
4453 TrackerCast(sprite[searchwall].x), TrackerCast(sprite[searchwall].y), in Keys3d()
4454 sprite[searchwall].xoffset|sprite[searchwall].yoffset ? " ^251*":""); in Keys3d()
4455 …Bsprintf(lines[num++], "PosZ: "" %d", TrackerCast(sprite[searchwall].z));// prevents tab charact… in Keys3d()
4461 if (sprite[searchwall].picnum<0 || sprite[searchwall].picnum>=MAXTILES) in Keys3d()
4464 if (names[sprite[searchwall].picnum][0]) in Keys3d()
4466 if (sprite[searchwall].picnum==SECTOREFFECTOR) in Keys3d()
4467 …nes[num++],"^%dSprite %d^%d %s", editorcolors[10], searchwall, whitecol, SectorEffectorText(search… in Keys3d()
4469 …(lines[num++],"^%dSprite %d^%d %s", editorcolors[10], searchwall, whitecol, names[sprite[searchwal… in Keys3d()
4471 …+],"^%dSprite %d^%d, picnum %d", editorcolors[10], searchwall, whitecol, TrackerCast(sprite[search… in Keys3d()
4474 … getflorzofslope(searchsector, sprite[searchwall].x, sprite[searchwall].y) - sprite[searchwall].z); in Keys3d()
4573 if (AIMING_AT_MASKWALL && wall[searchwall].nextwall >= 0) in Keys3d()
4574 NEXTWALL(searchwall).overpicnum = tempint; in Keys3d()
4577 correct_sprite_yoffset(searchwall); in Keys3d()
4620 wall[searchwall].cstat = 0; in Keys3d()
4622 wall[searchwall].cstat &= YAX_NEXTWALLBITS; in Keys3d()
4624 message("Wall %d cstat = %d", searchwall, TrackerCast(wall[searchwall].cstat)); in Keys3d()
4628 sprite[searchwall].cstat = 0; in Keys3d()
4629 message("Sprite %d cstat = 0", searchwall); in Keys3d()
4692 deletesprite(searchwall); in Keys3d()
4694 message("Sprite %d deleted",searchwall); in Keys3d()
4697 clearbit(g_ambiencePlaying, searchwall); in Keys3d()
4698 S_StopEnvSound(sprite[searchwall].lotag, searchwall); in Keys3d()
4722 ynw = yax_getnextwall(searchwall, cf); in Keys3d()
4726 yax_setnextwall(searchwall, cf, -1); in Keys3d()
4729 message("Cleared wall %d's %s link to wall %d", searchwall, yupdownwall[cf], ynw); in Keys3d()
4735 int32_t nw = wall[searchwall].nextwall; in Keys3d()
4740 wall[searchwall].nextsector = wall[searchwall].nextwall = -1; in Keys3d()
4742 message("Cleared connection between wall %d and %d", searchwall, nw); in Keys3d()
4761 if (AIMING_AT_SPRITE && sprite[searchwall].picnum==SECTOREFFECTOR) in Keys3d()
4772 32*(searchwall != searchbottomwall); in Keys3d()
4774 int32_t naligned=AutoAlignWalls(searchwall, flags, 0); in Keys3d()
4776 AutoAlignWalls(searchwall, flags, 0); in Keys3d()
4779 naligned==1 ? "" : "s", searchwall, in Keys3d()
4794 sprite[searchwall].ang += tsign<<(!eitherSHIFT*7); in Keys3d()
4795 sprite[searchwall].ang &= 2047; in Keys3d()
4796 message("Sprite %d angle: %d", searchwall, TrackerCast(sprite[searchwall].ang)); in Keys3d()
4834 …getnumberptr256("Sprite x: ", &sprite[searchwall].x, sizeof(sprite[0].x), editorgridextent-1, 1, N… in Keys3d()
4835 …getnumberptr256("Sprite y: ", &sprite[searchwall].y, sizeof(sprite[0].y), editorgridextent-1, 1, N… in Keys3d()
4836 … getnumberptr256("Sprite z: ", &sprite[searchwall].z, sizeof(sprite[0].z), BZ_MAX, 1, NULL); in Keys3d()
4837 … getnumberptr256("Sprite angle: ", &sprite[searchwall].ang, sizeof(sprite[0].ang), 2047, 1, NULL); in Keys3d()
4838 sprite[searchwall].ang &= 2047; in Keys3d()
4870 if (AIMING_AT_WALL_OR_MASK && yax_getnextwall(searchwall, YAX_FLOOR)>=0) in Keys3d()
4886 wall[searchwall].cstat ^= 32; in Keys3d()
4887 … message("Wall %d one side masking bit %s", searchwall, ONOFF(wall[searchwall].cstat&32)); in Keys3d()
4891 i = sprite[searchwall].cstat; in Keys3d()
4896 if ((i&64) && pos.z>sprite[searchwall].z) in Keys3d()
4899 message("Sprite %d one sided bit %s", searchwall, ONOFF(i&64)); in Keys3d()
4900 sprite[searchwall].cstat = i; in Keys3d()
4907 if (!AIMING_AT_SPRITE && searchwall>=0) in Keys3d()
4909 wall[searchwall].cstat ^= 2; in Keys3d()
4910 … message("Wall %d bottom texture swap bit %s", searchwall, ONOFF(wall[searchwall].cstat&2)); in Keys3d()
4926 DoSpriteOrnament(searchwall); in Keys3d()
4927 message("Sprite %d ornament onto wall", searchwall); in Keys3d()
4936 int16_t next = wall[searchwall].nextwall; in Keys3d()
4940 wall[searchwall].cstat ^= 16; in Keys3d()
4941 message("Wall %d masking bit %s", searchwall, ONOFF(wall[searchwall].cstat&16)); in Keys3d()
4943 wall[searchwall].cstat &= ~8; in Keys3d()
4945 if (wall[searchwall].cstat&16) in Keys3d()
4951 wall[next].overpicnum = wall[searchwall].overpicnum; in Keys3d()
4963 wall[searchwall].cstat &= ~32; in Keys3d()
4981 j = taglab_linktags(AIMING_AT_SPRITE, searchwall); in Keys3d()
4993 sprite[searchwall].cstat ^= 256; in Keys3d()
4994 … message("Sprite %d hitscan sensitivity bit %s", searchwall, ONOFF(sprite[searchwall].cstat&256)); in Keys3d()
5010 wall[searchwall].cstat ^= 64; in Keys3d()
5012 if (wall[searchwall].nextwall >= 0 && !eitherSHIFT) in Keys3d()
5014 NEXTWALL(searchwall).cstat &= ~64; in Keys3d()
5015 NEXTWALL(searchwall).cstat |= (wall[searchwall].cstat&64); in Keys3d()
5018 message("Wall %d hitscan sensitivity bit %s%s", searchwall, in Keys3d()
5019 ONOFF(wall[searchwall].cstat&64), eitherSHIFT?" (one-sided)":""); in Keys3d()
5118 … if (!eitherSHIFT && AIMING_AT_SPRITE && (show2dsprite[searchwall>>3]&(1<<(searchwall&7)))) in Keys3d()
5135 (AIMING_AT_CEILING_OR_FLOOR ? searchsector : searchwall), in Keys3d()
5183 correct_sprite_yoffset(searchwall); in Keys3d()
5219 toggle_sprite_alignment(searchwall); in Keys3d()
5228 SetFirstWall(searchsector, searchwall, eitherSHIFT); in Keys3d()
5243 message("Wall %d flip %s", searchwall, flip2label[i]); in Keys3d()
5254 i = sprite[searchwall].cstat; in Keys3d()
5257 sprite[searchwall].cstat &= ~0xc; in Keys3d()
5258 sprite[searchwall].cstat |= ((i&4)^4); in Keys3d()
5259 message("Sprite %d flip bit %s",searchwall, ONOFF(sprite[searchwall].cstat&4)); in Keys3d()
5266 message("Sprite %d flip %s", searchwall, flip2label[i]); in Keys3d()
5268 sprite[searchwall].cstat &= ~0xc; in Keys3d()
5269 sprite[searchwall].cstat |= (i<<2); in Keys3d()
5325 if (AIMING_AT_WALL_OR_MASK && wall[searchwall].nextsector>=0 in Keys3d()
5328 sect = wall[searchwall].nextsector; in Keys3d()
5424 spriteoncfz(searchwall, &cz, &fz); in Keys3d()
5425 sprite[searchwall].z = (tsign==1) ? fz : cz; in Keys3d()
5429 k = !!(show2dsprite[searchwall>>3]&(1<<(searchwall&7))); in Keys3d()
5437 int16_t sp = k==0 ? searchwall : highlight[i]&16383; in Keys3d()
5457 … silentmessage("Sprite %d z = %d", searchwall, TrackerCast(sprite[searchwall].z)); in Keys3d()
5654 sprite[searchwall].cstat ^= 32768; in Keys3d()
5655 … message("Sprite %d made %svisible", searchwall, (sprite[searchwall].cstat&32768) ? "in":""); in Keys3d()
5725 j = taglab_linktags(AIMING_AT_SPRITE, searchwall); in Keys3d()
5732 if (yax_getnextwall(searchwall, YAX_CEILING)>=0) in Keys3d()
5736 … wall[searchwall].lotag = getnumber256("Wall lotag: ", wall[searchwall].lotag, BTAG_MAX, 0+j); in Keys3d()
5745 if (sprite[searchwall].picnum == SECTOREFFECTOR) in Keys3d()
5747 sprite[searchwall].lotag = in Keys3d()
5748 … _getnumber256("Sprite lotag: ", sprite[searchwall].lotag, BTAG_MAX, 0+j, &SectorEffectorTagText); in Keys3d()
5750 else if (sprite[searchwall].picnum == MUSICANDSFX) in Keys3d()
5752 int16_t oldtag = sprite[searchwall].lotag; in Keys3d()
5754 sprite[searchwall].lotag = in Keys3d()
5755 … _getnumber256("Sprite lotag: ", sprite[searchwall].lotag, BTAG_MAX, 0+j, &MusicAndSFXTagText); in Keys3d()
5757 if (testbit(g_ambiencePlaying, searchwall) && sprite[searchwall].lotag != oldtag) in Keys3d()
5759 clearbit(g_ambiencePlaying, searchwall); in Keys3d()
5760 S_StopEnvSound(oldtag, searchwall); in Keys3d()
5764 …sprite[searchwall].lotag = getnumber256("Sprite lotag: ", sprite[searchwall].lotag, BTAG_MAX, 0+j); in Keys3d()
5784 int8_t oblend = sprite[searchwall].blend; in Keys3d()
5786 getnumberptr256(tempbuf, &sprite[searchwall].blend, sizeof(int8_t), 255, 0, NULL); in Keys3d()
5787 if (sprite[searchwall].blend != oblend) in Keys3d()
5812 const int32_t opicnum = *picnumptr, osearchwall = searchwall; in Keys3d()
5836 sprite[searchwall].cstat ^= 1; in Keys3d()
5839 message("Sprite %d blocking bit %s", searchwall, ONOFF(sprite[searchwall].cstat&1)); in Keys3d()
5855 wall[searchwall].cstat ^= 1; in Keys3d()
5857 if ((wall[searchwall].nextwall >= 0) && !eitherSHIFT) in Keys3d()
5859 NEXTWALL(searchwall).cstat &= ~(1+64); in Keys3d()
5860 NEXTWALL(searchwall).cstat |= (wall[searchwall].cstat&1); in Keys3d()
5863 message("Wall %d blocking bit %s%s", searchwall, ONOFF(wall[searchwall].cstat&1), in Keys3d()
5875 sprite[searchwall].cstat ^= CSTAT_SPRITE_NOSHADE; in Keys3d()
5876 message("Sprite %d spritenoshade bit: %s", searchwall, in Keys3d()
5877 ONOFF(sprite[searchwall].cstat&CSTAT_SPRITE_NOSHADE)); in Keys3d()
5913 TextEntryMode(searchwall); in Keys3d()
5919 if ((sprite[searchwall].cstat&2) == 0) in Keys3d()
5920 sprite[searchwall].cstat |= 2; in Keys3d()
5921 else if ((sprite[searchwall].cstat&512) == 0) in Keys3d()
5922 sprite[searchwall].cstat |= 512; in Keys3d()
5924 sprite[searchwall].cstat &= ~(2+512); in Keys3d()
5929 if ((wall[searchwall].cstat&128) == 0) in Keys3d()
5930 wall[searchwall].cstat |= 128; in Keys3d()
5931 else if ((wall[searchwall].cstat&512) == 0) in Keys3d()
5932 wall[searchwall].cstat |= 512; in Keys3d()
5934 wall[searchwall].cstat &= ~(128+512); in Keys3d()
5936 if (wall[searchwall].nextwall >= 0) in Keys3d()
5938 NEXTWALL(searchwall).cstat &= ~(128+512); in Keys3d()
5939 NEXTWALL(searchwall).cstat |= (wall[searchwall].cstat&(128+512)); in Keys3d()
5986 int32_t ns=wall[searchwall].nextsector, sx=wall[searchwall].x, sy=wall[searchwall].y; in Keys3d()
6002 message("Sector %d align ceiling to wall %d", searchsector, searchwall); in Keys3d()
6017 message("Sector %d align floor to wall %d", searchsector, searchwall); in Keys3d()
6188 … wall[searchwall].xrepeat = changechar(wall[searchwall].xrepeat, changedir, smooshyalign, 1); in Keys3d()
6189 silentmessage("Wall %d repeat: %d, %d", searchwall, in Keys3d()
6190 TrackerCast(wall[searchwall].xrepeat), in Keys3d()
6191 TrackerCast(wall[searchwall].yrepeat)); in Keys3d()
6241 … sprite[searchwall].xrepeat = changechar(sprite[searchwall].xrepeat, changedir, smooshyalign, 1); in Keys3d()
6242 if (sprite[searchwall].xrepeat < 4) in Keys3d()
6243 sprite[searchwall].xrepeat = 4; in Keys3d()
6244 silentmessage("Sprite %d repeat: %d, %d", searchwall, in Keys3d()
6245 TrackerCast(sprite[searchwall].xrepeat), in Keys3d()
6246 TrackerCast(sprite[searchwall].yrepeat)); in Keys3d()
6273 … updownunits = klabs((int32_t)(g_mousePos.y*128./tilesiz[wall[searchwall].picnum].y)); in Keys3d()
6312 … wall[searchwall].yrepeat = changechar(wall[searchwall].yrepeat, changedir, smooshyalign, 1); in Keys3d()
6313 silentmessage("Wall %d repeat: %d, %d", searchwall, in Keys3d()
6314 TrackerCast(wall[searchwall].xrepeat), in Keys3d()
6315 TrackerCast(wall[searchwall].yrepeat)); in Keys3d()
6348 … sprite[searchwall].yrepeat = changechar(sprite[searchwall].yrepeat, changedir, smooshyalign, 1); in Keys3d()
6349 if (sprite[searchwall].yrepeat < 4) in Keys3d()
6350 sprite[searchwall].yrepeat = 4; in Keys3d()
6351 silentmessage("Sprite %d repeat: %d, %d", searchwall, in Keys3d()
6352 TrackerCast(sprite[searchwall].xrepeat), in Keys3d()
6353 TrackerCast(sprite[searchwall].yrepeat)); in Keys3d()
6394 if (yax_getnextwall(searchwall, YAX_CEILING) >= 0) in Keys3d()
6396 if (yax_getnextwall(searchwall, YAX_FLOOR) >= 0) in Keys3d()
6410 templenrepquot = getlenbyrep(wallength(searchwall), tempxrepeat); in Keys3d()
6412 tempsectornum = sectorofwall(searchwall); in Keys3d()
6440 temppicnum = sprite[searchwall].picnum; in Keys3d()
6441 tempxrepeat = sprite[searchwall].xrepeat; in Keys3d()
6442 tempyrepeat = sprite[searchwall].yrepeat; in Keys3d()
6443 tempcstat = sprite[searchwall].cstat; in Keys3d()
6444 tempxvel = sprite[searchwall].xvel; in Keys3d()
6445 tempyvel = sprite[searchwall].yvel; in Keys3d()
6446 tempzvel = sprite[searchwall].zvel; in Keys3d()
6448 tempstatnum = sprite[searchwall].statnum; in Keys3d()
6449 tempblend = sprite[searchwall].blend; in Keys3d()
6467 correct_sprite_yoffset(searchwall); in Keys3d()
6609 i = searchwall; in Keys3d()
6617 while (i != searchwall); in Keys3d()
6619 …daang = getangle(POINT2(searchwall).x-wall[searchwall].x, POINT2(searchwall).y-wall[searchwall].y); in Keys3d()
6621 i = searchwall; in Keys3d()
6633 while (i != searchwall); in Keys3d()
6635 message("Auto-shaded wall %d's loop", searchwall); in Keys3d()
6652 sprite[searchwall].blend = tempblend; in Keys3d()
6662 i = searchwall; in Keys3d()
6685 while (i != searchwall); in Keys3d()
6688 clipboard_has_wall?"+pixelwidth":"", searchwall); in Keys3d()
6770 (!AIMING_AT_WALL || searchwall==searchbottomwall)) in Keys3d()
6772 wall[searchwall].xrepeat = tempxrepeat; in Keys3d()
6773 wall[searchwall].yrepeat = tempyrepeat; in Keys3d()
6774 wall[searchwall].xpanning = tempxpanning; in Keys3d()
6775 wall[searchwall].ypanning = tempypanning; in Keys3d()
6777 SET_PROTECT_BITS(wall[searchwall].cstat, tempcstat, ~(4 + 1+64 + 8+256)); in Keys3d()
6779 wall[searchwall].hitag = temphitag; in Keys3d()
6781 if (yax_getnextwall(searchwall, YAX_CEILING) == -1) in Keys3d()
6783 wall[searchwall].lotag = templotag; in Keys3d()
6785 if (yax_getnextwall(searchwall, YAX_FLOOR) == -1) in Keys3d()
6787 wall[searchwall].extra = tempextra; in Keys3d()
6789 fixxrepeat(searchwall, templenrepquot); in Keys3d()
6804 wall[searchwall].overpicnum = temppicnum; in Keys3d()
6805 if (wall[searchwall].nextwall >= 0) in Keys3d()
6806 NEXTWALL(searchwall).overpicnum = temppicnum; in Keys3d()
6808 wall[searchwall].shade = tempshade; in Keys3d()
6809 wall[searchwall].pal = temppal; in Keys3d()
6838 sprite[searchwall].picnum = temppicnum; in Keys3d()
6849 sprite[searchwall].picnum = j; in Keys3d()
6852 sprite[searchwall].shade = tempshade; in Keys3d()
6853 sprite[searchwall].pal = temppal; in Keys3d()
6857 sprite[searchwall].xrepeat = max(tempxrepeat, 1u); in Keys3d()
6858 sprite[searchwall].yrepeat = max(tempyrepeat, 1u); in Keys3d()
6859 sprite[searchwall].cstat = tempcstat; in Keys3d()
6860 sprite[searchwall].lotag = templotag; in Keys3d()
6861 sprite[searchwall].hitag = temphitag; in Keys3d()
6862 sprite[searchwall].extra = tempextra; in Keys3d()
6863 sprite[searchwall].xvel = tempxvel; in Keys3d()
6864 sprite[searchwall].yvel = tempyvel; in Keys3d()
6865 sprite[searchwall].zvel = tempzvel; in Keys3d()
6866 changespritestat(searchwall, tempstatnum); in Keys3d()
6867 sprite[searchwall].blend = tempblend; in Keys3d()
6870 correct_sprite_yoffset(searchwall); in Keys3d()
6900 j = sprite[searchwall].picnum; in Keys3d()
6910 j = wall[searchwall].overpicnum; in Keys3d()
6930 sprite[searchwall].cstat ^= 128; in Keys3d()
6931 … message("Sprite %d center bit %s",searchwall, ONOFF((sprite[searchwall].cstat&128))); in Keys3d()
6951 fixrepeats(searchwall); in Keys3d()
6977 sprite[searchwall].xrepeat = sprite[searchwall].yrepeat; in Keys3d()
6980 sprite[searchwall].xrepeat = 64; in Keys3d()
6981 sprite[searchwall].yrepeat = 64; in Keys3d()
6984 correct_sprite_yoffset(searchwall); in Keys3d()
7030 …sprite[searchwall].clipdist = getnumber256("Sprite clipdist: ", sprite[searchwall].clipdist, 255, … in Keys3d()
7884 … if (yax_getnextwall(linehighlight, YAX_CEILING)>=0 || yax_getnextwall(searchwall, YAX_FLOOR)>=0) in Keys2d()
9073 vm.spriteNum = searchwall; in osdcmd_do()