Subversion Repositories eduke32

Rev

Rev 8686 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8686 Rev 8694
Line 36... Line 36...
36
36
37
extern int qsetmode;
37
extern int qsetmode;
38
38
39
SWBOOL FindCeilingView(short match, int32_t* x, int32_t* y, int32_t z, int16_t* sectnum);
39
SWBOOL FindCeilingView(short match, int32_t* x, int32_t* y, int32_t z, int16_t* sectnum);
40
SWBOOL FindFloorView(short match, int32_t* x, int32_t* y, int32_t z, int16_t* sectnum);
40
SWBOOL FindFloorView(short match, int32_t* x, int32_t* y, int32_t z, int16_t* sectnum);
41
short ViewSectorInScene(short cursectnum, short type, short level);
41
short ViewSectorInScene(short cursectnum, short level);
42
void Message(const char *string, char color);
42
void Message(const char *string, char color);
43
43
44
44
45
void
45
void
46
_Assert(const char *expr, const char *strFile, unsigned uLine)
46
_Assert(const char *expr, const char *strFile, unsigned uLine)
Line 123... Line 123...
123
123
124
        save.zcount = 0;
124
        save.zcount = 0;
125
125
126
        if (sector[cursectnum].ceilingpicnum == FAF_MIRROR_PIC)
126
        if (sector[cursectnum].ceilingpicnum == FAF_MIRROR_PIC)
127
        {
127
        {
128
            match = ViewSectorInScene(tsectnum, VIEW_THRU_CEILING, VIEW_LEVEL1);
128
            match = ViewSectorInScene(tsectnum, VIEW_LEVEL1);
129
129
130
            FAF_DontMoveSectors = TRUE;
130
            FAF_DontMoveSectors = TRUE;
131
            FindCeilingView(match, &tx, &ty, tz, &tsectnum);
131
            FindCeilingView(match, &tx, &ty, tz, &tsectnum);
132
            FAF_DontMoveSectors = FALSE;
132
            FAF_DontMoveSectors = FALSE;
133
133
Line 136... Line 136...
136
            cursectnum = tsectnum;
136
            cursectnum = tsectnum;
137
            pos.z = sector[cursectnum].floorz - Z(20);
137
            pos.z = sector[cursectnum].floorz - Z(20);
138
        }
138
        }
139
        else if (sector[cursectnum].floorpicnum == FAF_MIRROR_PIC)
139
        else if (sector[cursectnum].floorpicnum == FAF_MIRROR_PIC)
140
        {
140
        {
141
            match = ViewSectorInScene(tsectnum, VIEW_THRU_FLOOR, VIEW_LEVEL2);
141
            match = ViewSectorInScene(tsectnum, VIEW_LEVEL2);
142
142
143
            FAF_DontMoveSectors = TRUE;
143
            FAF_DontMoveSectors = TRUE;
144
            FindFloorView(match, &tx, &ty, tz, &tsectnum);
144
            FindFloorView(match, &tx, &ty, tz, &tsectnum);
145
            FAF_DontMoveSectors = FALSE;
145
            FAF_DontMoveSectors = FALSE;
146
146
Line 635... Line 635...
635
635
636
    return FALSE;
636
    return FALSE;
637
}
637
}
638
638
639
short
639
short
640
ViewSectorInScene(short cursectnum, short type, short level)
640
ViewSectorInScene(short cursectnum, short level)
641
{
641
{
642
    int i, nexti;
642
    int i, nexti;
643
    SPRITEp sp;
643
    SPRITEp sp;
644
    short match;
644
    short match;
645
645
Line 673... Line 673...
673
    short i;
673
    short i;
674
    short match;
674
    short match;
675
675
676
    save.zcount = 0;
676
    save.zcount = 0;
677
677
678
    match = ViewSectorInScene(tsectnum, VIEW_THRU_CEILING, VIEW_LEVEL1);
678
    match = ViewSectorInScene(tsectnum, VIEW_LEVEL1);
679
    if (match != -1)
679
    if (match != -1)
680
    {
680
    {
681
        FindCeilingView(match, &tx, &ty, tz, &tsectnum);
681
        FindCeilingView(match, &tx, &ty, tz, &tsectnum);
682
682
683
        if (tsectnum < 0)
683
        if (tsectnum < 0)
Line 698... Line 698...
698
            sector[save.sectnum[i]].floorheinum = save.slope[i];
698
            sector[save.sectnum[i]].floorheinum = save.slope[i];
699
        }
699
        }
700
    }
700
    }
701
    else
701
    else
702
    {
702
    {
703
        match = ViewSectorInScene(tsectnum, VIEW_THRU_FLOOR, VIEW_LEVEL2);
703
        match = ViewSectorInScene(tsectnum, VIEW_LEVEL2);
704
        if (match != -1)
704
        if (match != -1)
705
        {
705
        {
706
            FindFloorView(match, &tx, &ty, tz, &tsectnum);
706
            FindFloorView(match, &tx, &ty, tz, &tsectnum);
707
707
708
            if (tsectnum < 0)
708
            if (tsectnum < 0)