sshipway / wanderer

Wanderer text-based boulderdash clone game
GNU General Public License v2.0
8 stars 3 forks source link

Fix restore_game #5

Closed livibetter closed 8 years ago

livibetter commented 8 years ago

It didn't work, so I just copied the part from save_game.

sshipway commented 8 years ago

I can't automerge this, there is a conflict. I'll address this later

livibetter commented 8 years ago

@sshipway I'll resolve this, I am currently trying to remove K&R C, unnecessary extern. Actually, restructuring the files, split the wand_head.h.

I have found some issues, such the prototypes didn't match, the crypt invocation has the parameter to indicate encrypt or decrypt, but the function definition has no such parameter, I wonder if that's half-written code or some time along the development, it got accidentally messed up.

Also, pass code from clearing screen didn't work to jump screen, for screen two at least, not sure about other screens, but "chocolate chips" did taste nice.

Anyway, it could be a relatively large PR.

sshipway commented 8 years ago

There are going to be loads of problems, since the C syntax is 25y old, and has DOS compatibility stuff in it. Anyway, many thanks for your work on this! It is great to see the old code living again...

livibetter commented 8 years ago

The following comment above the function explains why the crypt_file doesn't have the extra parameter.

/* Uses seeded random xor to encrypt because setkey doesnt work on our
   system.                                                                 */

Someone edited the function and made mismatch type signatures with the different prototypes here and there -- not just this function, several, actually. I was very confused. Anyway, it doesn't need the parameter, since it's using XOR.

I also realized there is convert and passwords tools. that would have to be fixed, although, I don't really sure what they are for.

livibetter commented 8 years ago

This will be resolved in #8, closing.