Implement Rendering fixes (Infinite iterator bugs) from demo fixes. Release Build 9509.

pull/57/head
sigonasr2 6 months ago
parent a8bb30e12f
commit 8a12cc0c66
  1. 2
      Adventures in Lestoria/AdventuresInLestoria.cpp
  2. 2
      Adventures in Lestoria/Version.h
  3. BIN
      x64/Release/Adventures in Lestoria.exe

@ -1626,6 +1626,7 @@ void AiL::RenderWorld(float fElapsedTime){
const ItemDrop&drop=ItemDrop::drops[*dropsAfterUpperIt];
if(drop.pos.y<topTileY){
drop.Draw();
++dropsAfterUpperIt;
continue;
}
break;
@ -1716,6 +1717,7 @@ void AiL::RenderWorld(float fElapsedTime){
while(dropsBeforeUpperIt!=dropsBeforeUpper.end()){
const int dropInd=*dropsBeforeUpperIt;
ItemDrop::drops[dropInd].Draw();
++dropsBeforeUpperIt;
}
if(!player->rendered&&player->upperLevel){
player->rendered=true;

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_PATCH 3
#define VERSION_BUILD 9507
#define VERSION_BUILD 9509
#define stringify(a) stringify_(a)
#define stringify_(a) #a

Loading…
Cancel
Save