Skip to content

Commit

Permalink
fix(zscript): Hero->WarpEx not using dmap xoff when setting continue …
Browse files Browse the repository at this point in the history
…screen
  • Loading branch information
connorjclark committed Dec 20, 2023
1 parent 6e204d4 commit e21ba53
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/zc/ffscript.cpp
Expand Up @@ -34655,26 +34655,17 @@ bool FFScript::warp_player(int32_t warpType, int32_t dmapID, int32_t scrID, int3
}
if ( warpType == wtEXIT )
{
//game->set_continue_scrn(DMaps[currdmap].cont + DMaps[currdmap].xoff);
game->set_continue_scrn(scrID);
game->set_continue_scrn(currscr);
game->set_continue_dmap(dmapID);
lastentrance = scrID;
//zprint("Setting Last Entrance to: %d\n", scrID);
//zprint("lastentrance = %d\n",lastentrance);
lastentrance = currscr;
lastentrance_dmap = dmapID;
//zprint("Setting Last Entrance DMap to: %d\n", dmapID);
//zprint("lastentrance_dmap = %d\n",lastentrance_dmap);
//lastentrance_dmap = currdmap;
//lastentrance = game->get_continue_scrn();
}
else
{
if ( (warpFlags&warpFlagSETENTRANCESCREEN) ) lastentrance = scrID;
if ( (warpFlags&warpFlagSETENTRANCESCREEN) ) lastentrance = currscr;
if ( (warpFlags&warpFlagSETENTRANCEDMAP) ) lastentrance_dmap = dmapID;
if ( (warpFlags&warpFlagSETCONTINUESCREEN) ) game->set_continue_scrn(scrID);
if ( (warpFlags&warpFlagSETCONTINUESCREEN) ) game->set_continue_scrn(currscr);
if ( (warpFlags&warpFlagSETCONTINUEDMAP) ) game->set_continue_dmap(dmapID);


}
if(tmpscr->flags4&fAUTOSAVE)
{
Expand Down

0 comments on commit e21ba53

Please sign in to comment.