adventuregamestudio/ags — pull request #20 by pwiecz (2012-11-05 21:04:05+00:00)
Title: Access player struct via raw pointer if game version is <27

In older ags games the "player" struct seems to be accessed via raw pointer and not managed object as it's done now in the ags engine.

To reproduce run "Apprentice 1" or "Apprentice 2" take scroll in the first room, and try using it on anything. You'll see description of the used object changing to "Cup of water".

Somehow I cannot make it fail using old engine versions, but as I'm running them under wine on ubuntu perhaps I'm doing something wrong.

I cannot trigger this behaviour on games versions higher then 27 so I'm assuming it's limited to versions <27, but perhaps there is other trigger for this behaviour.

If you have any advise how to verify this change I'm glad to follow it.