mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Change a couple of memcpys to just clear the whole size of the array instead of computing the size at runtime
git-svn-id: https://svn.eduke32.com/eduke32@8073 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c835219de0
commit
4b6123f303
1 changed files with 4 additions and 4 deletions
|
@ -957,7 +957,7 @@ void yax_drawrooms(void (*SpriteAnimFunc)(int32_t,int32_t,int32_t,int32_t),
|
||||||
qsort(&bunches[cf][bbeg], numhere, sizeof(int16_t), &yax_cmpbunches);
|
qsort(&bunches[cf][bbeg], numhere, sizeof(int16_t), &yax_cmpbunches);
|
||||||
|
|
||||||
if (numhere > 1 && lev != YAX_MAXDRAWS-1)
|
if (numhere > 1 && lev != YAX_MAXDRAWS-1)
|
||||||
Bmemset(lgotsector, 0, (numsectors+7)>>3);
|
Bmemset(lgotsector, 0, sizeof(lgotsector));
|
||||||
|
|
||||||
for (bnchcnt=bbeg; bnchcnt < bbeg+numhere; bnchcnt++)
|
for (bnchcnt=bbeg; bnchcnt < bbeg+numhere; bnchcnt++)
|
||||||
{
|
{
|
||||||
|
@ -8448,7 +8448,7 @@ int32_t renderDrawRoomsQ16(int32_t daposx, int32_t daposy, int32_t daposz,
|
||||||
if ((xyaspect != oxyaspect) || (xdimen != oxdimen) || (viewingrange != oviewingrange))
|
if ((xyaspect != oxyaspect) || (xdimen != oxdimen) || (viewingrange != oviewingrange))
|
||||||
dosetaspect();
|
dosetaspect();
|
||||||
|
|
||||||
Bmemset(gotsector, 0, ((numsectors+7)>>3));
|
Bmemset(gotsector, 0, sizeof(gotsector));
|
||||||
|
|
||||||
if (videoGetRenderMode() != REND_CLASSIC
|
if (videoGetRenderMode() != REND_CLASSIC
|
||||||
#ifdef YAX_ENABLE
|
#ifdef YAX_ENABLE
|
||||||
|
@ -9204,7 +9204,7 @@ void renderDrawMapView(int32_t dax, int32_t day, int32_t zoome, int16_t ang)
|
||||||
|
|
||||||
beforedrawrooms = 0;
|
beforedrawrooms = 0;
|
||||||
|
|
||||||
Bmemset(gotsector, 0, (numsectors+7)>>3);
|
Bmemset(gotsector, 0, sizeof(gotsector));
|
||||||
|
|
||||||
vec2_t const c1 = { (windowxy1.x<<12), (windowxy1.y<<12) };
|
vec2_t const c1 = { (windowxy1.x<<12), (windowxy1.y<<12) };
|
||||||
vec2_t const c2 = { ((windowxy2.x+1)<<12)-1, ((windowxy2.y+1)<<12)-1 };
|
vec2_t const c2 = { ((windowxy2.x+1)<<12)-1, ((windowxy2.y+1)<<12)-1 };
|
||||||
|
@ -10887,7 +10887,7 @@ int32_t cansee(int32_t x1, int32_t y1, int32_t z1, int16_t sect1, int32_t x2, in
|
||||||
|
|
||||||
Bmemset(&pendingvec, 0, sizeof(vec3_t)); // compiler-happy
|
Bmemset(&pendingvec, 0, sizeof(vec3_t)); // compiler-happy
|
||||||
#endif
|
#endif
|
||||||
Bmemset(sectbitmap, 0, (numsectors+7)>>3);
|
Bmemset(sectbitmap, 0, sizeof(sectbitmap));
|
||||||
#ifdef YAX_ENABLE
|
#ifdef YAX_ENABLE
|
||||||
restart_grand:
|
restart_grand:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue