You don't need the bmap_unlock()

Even then, I don't kow if copying the image will work that way.

Here's another idea using bmap_blit() to copy the image:
Code:

bmap testBMAP = <rooidle_west0000.pcx>;
bmap* ptr;
function changeBMap()
{
ptr = bmap_for_entity(my,0);
bmap_blit(ptr, testBMAP, 0, 0);
}




xXxGuitar511
- Programmer