Another small fix
Tested on a real 3ds, everything seems to work correctly!
This commit is contained in:
parent
c7338ef7b0
commit
8366015573
1 changed files with 4 additions and 4 deletions
|
@ -418,11 +418,11 @@ void renderLightsToStencil() {
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < eManager.lastSlot[currentLevel]; ++i) {
|
for (i = 0; i < eManager.lastSlot[currentLevel]; ++i) {
|
||||||
Entity e = eManager.entities[currentLevel][i];
|
Entity e = eManager.entities[currentLevel][i];
|
||||||
if (e.type != ENTITY_FURNITURE
|
if (e.type != ENTITY_FURNITURE)
|
||||||
&& e.entityFurniture.itemID == ITEM_LANTERN)
|
|
||||||
continue;
|
continue;
|
||||||
if (e.x > player.x - 160 && e.y > player.y - 125
|
if (e.entityFurniture.itemID == ITEM_LANTERN && e.x > player.x - 160
|
||||||
&& e.x < player.x + 160 && e.y < player.y + 125)
|
&& e.y > player.y - 125 && e.x < player.x + 160
|
||||||
|
&& e.y < player.y + 125)
|
||||||
renderLight(e.x, e.y, lanternLightBake);
|
renderLight(e.x, e.y, lanternLightBake);
|
||||||
}
|
}
|
||||||
GPU_SetDepthTestAndWriteMask(true, GPU_GEQUAL, GPU_WRITE_ALL);
|
GPU_SetDepthTestAndWriteMask(true, GPU_GEQUAL, GPU_WRITE_ALL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue