- Added tracking of time spent specifically in running action functions. I feel kind of stupid

about this now. I spent three days trying to figure out why the VC++ debug version was so slow.
  It turns out I had a conditional breakpoint set in a high-traffic area. D'oh!

The rest of this stuff should get merged into trunk:

- Fixed: Writing to debugfile uses the standard fprintf, which does not understand %td on VC++.
- Fixed: Instead of crashing when a sprite has been scaled to 0, just don't draw it.

SVN r3896 (scripting)
This commit is contained in:
Randy Heit 2012-10-21 03:46:17 +00:00
commit 47eec0b275
4 changed files with 16 additions and 4 deletions

View file

@ -326,6 +326,11 @@ void R_DrawVisSprite (vissprite_t *vis)
fixed_t xiscale;
ESPSResult mode;
if (vis->xscale == 0 || vis->yscale == 0)
{ // scaled to 0; can't see
return;
}
dc_colormap = vis->Style.colormap;
mode = R_SetPatchStyle (vis->Style.RenderStyle, vis->Style.alpha, vis->Translation, vis->FillColor);