OmegaRPG icon indicating copy to clipboard operation
OmegaRPG copied to clipboard

Polymorph crashes game

Open vsrz opened this issue 11 years ago • 4 comments

Using a wand of polymorph or the spell generally seems to cause bad things to happen. Corpse appears in the top left corner of the map, the mob is invulnerable and invisible, etc. This happens in dungeons and in the city.

I can reproduce the problem both in Linux 2.6 and Win32 so I'm pretty sure it's not a curses issue.

vsrz avatar Mar 17 '13 05:03 vsrz

Is this reproducible on master (i.e. without the object class patch)? I'll try to test this soon and see if I can figure out what's up.

If it's not specific to the changes to objects, I'm slightly more inclined to push forward with refactoring, since that work could potentially iron out existing bugs (albeit possibly introducing new ones as well).

cwc avatar Mar 18 '13 15:03 cwc

I tested this on the current master and even well before I contributed to the project on https://github.com/cwc/OmegaRPG/commit/e600487a7c5dad996b5909ad272d040d80d5c8a3

It might have been introduced during Monster refactoring.

vsrz avatar Mar 18 '13 15:03 vsrz

Gotcha. I'll see if I can determine if it's a simple fix or not.

cwc avatar Mar 18 '13 15:03 cwc

174f538 should fix this. The new monster's X and Y position were not being set on the actual monster object, so anything that used it (such as drawing) was broken.

Also, I tested the version of Omega that's available on Ubuntu and found that polymorph is similarly bugged in it. :laughing: Yay progress.

cwc avatar Mar 19 '13 16:03 cwc