static inline int dCoords function is added. It's called in GetDCoords and Get3DCoords. They're different because of the parameter of fprintf, so it is put as a parameter of function. Making is successful all printfs with char * are tested.
Ksenija - the fread was removed from the function in this patch, as well as the assignments to coop - is that intentional?
Patch was updated.
I'm still seeing this patch remove the fread from GetDCoords, as well as some assignment logic - is that intentional? It looks like only lines 869 - 872 should be impacted by this, but the whole body of GetDCoords is pretty much gutted.
updated patch for fb/pl-fb.c
Patch was updated. Logic didn't changed. You can look here https://dl-web.dropbox.com/get/Public/diff.png?w=4a6da7f8 (initial difference between GetDCoords and Get3DCoords). There were three different places (depence on dimensional). After reduction : https://dl-web.dropbox.com/get/Public/fb_after.png?w=8b791007 ("in" now parameter). Everything is clear now.
Alternative links : http://rghost.ru/39484876.view and http://rghost.ru/39485002.view