Skip to content

Commit

Permalink
- removed the __asm nop breakpoints for debugging. They not only do n…
Browse files Browse the repository at this point in the history
…ot work on non-MSVC but also not on 64 bit.
  • Loading branch information
Christoph Oelckers committed May 8, 2014
1 parent a4076ff commit 1d4ea9f
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 32 deletions.
4 changes: 1 addition & 3 deletions src/gl/data/gl_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,11 @@ static void PrepareTransparentDoors(sector_t * sector)
int i;
sector_t * nextsec=NULL;

#ifdef _MSC_VER
#ifdef _DEBUG
if (sector-sectors==2)
{
__asm nop
int a = 0;
}
#endif
#endif

P_Recalculate3DFloors(sector);
Expand Down
12 changes: 5 additions & 7 deletions src/gl/scene/gl_bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ static sector_t *currentsector;

static void AddLine (seg_t *seg)
{
#ifdef _MSC_VER
#ifdef _DEBUG
if (seg->linedef-lines==38)
__asm nop
#endif
if (seg->linedef - lines == 38)
{
int a = 0;
}
#endif

angle_t startAngle, endAngle;
Expand Down Expand Up @@ -382,13 +382,11 @@ static void DoSubsector(subsector_t * sub)
//if (!clipper.CheckBox(sub->bbox)) return;


#ifdef _MSC_VER
#ifdef _DEBUG
if (sub->sector-sectors==931)
{
__asm nop
int a = 0;
}
#endif
#endif

sector=sub->sector;
Expand Down
4 changes: 1 addition & 3 deletions src/gl/scene/gl_fakeflat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,11 @@ sector_t * gl_FakeFlat(sector_t * sec, sector_t * dest, area_t in_area, bool bac
return sec;
}

#ifdef _MSC_VER
#ifdef _DEBUG
if (sec-sectors==560)
{
__asm nop
int a = 0;
}
#endif
#endif

if (in_area==area_above)
Expand Down
14 changes: 4 additions & 10 deletions src/gl/scene/gl_flats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,11 @@ void GLFlat::Draw(int pass)
int i;
int rel = getExtraLight();

#ifdef _MSC_VER
#ifdef _DEBUG
if (sector->sectornum == 2)
__asm nop
#endif
{
int a = 0;
}
#endif


Expand Down Expand Up @@ -572,17 +572,11 @@ void GLFlat::ProcessSector(sector_t * frontsector)
{
lightlist_t * light;

#ifdef _MSC_VER
#ifdef _DEBUG
if (frontsector==NULL)
{
__asm int 3
}
if (frontsector->sectornum==0)
{
__asm nop
int a = 0;
}
#endif
#endif

// Get the real sector for this one.
Expand Down
12 changes: 6 additions & 6 deletions src/gl/scene/gl_walls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ void GLWall::SplitWall(sector_t * frontsector, bool translucent)
}
::SplitWall.Clock();

#ifdef _MSC_VER
#ifdef _DEBUG
if (seg->linedef-lines==1)
__asm nop
#endif
{
int a = 0;
}
#endif

if (lightlist.Size()>1)
Expand Down Expand Up @@ -1445,11 +1445,11 @@ void GLWall::Process(seg_t *seg, sector_t * frontsector, sector_t * backsector)
sector_t * realfront;
sector_t * realback;

#ifdef _MSC_VER
#ifdef _DEBUG
if (seg->linedef-lines==636)
__asm nop
#endif
{
int a = 0;
}
#endif

// note: we always have a valid sidedef and linedef reference when getting here.
Expand Down
6 changes: 3 additions & 3 deletions src/gl/scene/gl_walls_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,11 @@ void GLWall::Draw(int pass)
FLightNode * node;
int rel;

#ifdef _MSC_VER
#ifdef _DEBUG
if (seg->linedef-lines==879)
__asm nop
#endif
{
int a = 0;
}
#endif


Expand Down

0 comments on commit 1d4ea9f

Please sign in to comment.