diff --git a/data/offsets.bal b/data/offsets.bal index c0dc5ec..d7109be 100644 --- a/data/offsets.bal +++ b/data/offsets.bal @@ -1,30 +1 @@ - -©«³¸±³¸»¹¯ -½¯´·¬¹Â®¼Ç -¦³¬¶ª³½À²º -«¸¨Á«¹¿µ·½ -¦¸¶½·®°¾ÀÆ -º¹¬ºµ¹²³²² -§§³·¸³¾®®¹ -µ«·­¹³¹À¼À -¦«¹·³«À¸²Á -¹«³­¯¹¹µ°¯ -¼«³·¿¯µ­¶º -§µ¹º¾¶·±ÁÁ -³»²±·´¬µ¹Á -¯§°´±Ã¸º¼Á -©»²­·¿¶±º¡ -µ§ª·¯¹½Å¼Ã -§§ª¼®¼´»¹Á -§¸À¶­³¾¹®¼ -«»ª³®·¬¸¹Á -³µ³­¶·´º´Á -¬¸¨«²«¾¼¼À -§»©´®¬À®¹³ -ª´¸½®®¬Á»¯ -±§«­µ°´º®º -ª´¸½®®¬¹²Á -³µº©ª­¬®®Â -³µ­©µ¾¸»¹Â -®¶¬¶¾¶¿µº¯ -ª²·©¼½Â»¿² \ No newline at end of file +©«³¸±³¸»¹¯½¯´·¬¹Â®¼Ç¦³¬¶ª³½À²º«¸¨Á«¹¿µ·½¦¸¶½·®°¾Àƺ¹¬ºµ¹²³²²§§³·¸³¾®®¹µ«·­¹³¹À¼À¦«¹·³«À¸²Á¹«³­¯¹¹µ°¯¼«³·¿¯µ­¶º§µ¹º¾¶·±ÁÁ³»²±·´¬µ¹Á¯§°´±Ã¸º¼Á©»²­·¿¶±º¡µ§ª·¯¹½Å¼Ã§§ª¼®¼´»¹Á§¸À¶­³¾¹®¼«»ª³®·¬¸¹Á³µ³­¶·´º´Á¬¸¨«²«¾¼¼À§»©´®¬À®¹³ª´¸½®®¬Á»¯±§«­µ°´º®ºª´¸½®®¬¹²Á³µº©ª­¬®®Â³µ­©µ¾¸»¹Â®¶¬¶¾¶¿µº¯ª²·©¼½Â»¿² \ No newline at end of file diff --git a/source/gamestate_password.cpp b/source/gamestate_password.cpp index 6880c0e..399c5f3 100644 --- a/source/gamestate_password.cpp +++ b/source/gamestate_password.cpp @@ -130,10 +130,8 @@ namespace gamestate while ( numPassword < 30 && !salir ) { for (int i=0;i<10;i++) { - punter++; - passFile[i] = buffer[punter] - (101+i); + passFile[i] = buffer[punter++] - (101+i); } - punter++; salir = true; for (int i=0;i<10;i++) { diff --git a/source/gamestate_postfase.cpp b/source/gamestate_postfase.cpp index 3eccd0e..5c2bcb0 100644 --- a/source/gamestate_postfase.cpp +++ b/source/gamestate_postfase.cpp @@ -106,9 +106,10 @@ namespace gamestate { char *buffer = file::getFileBuffer("offsets.bal"); - int punter = (game::getConfig("fase")-1)*11; + int punter = (game::getConfig("fase")-1)*10; char passFile[11]; - for (int i=0;i<10;i++) passFile[i] = uint8_t(buffer[++punter]) - (101+i); + for (int i=0;i<10;i++) passFile[i] = uint8_t(buffer[punter++]) - (101+i); + passFile[10] = 0; free(buffer); return passFile;