X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fitems.c;h=126fd5ce4e24e5f80fbc1e39895917cb3dc8fb75;hb=e5c2eddc151a59db4e611a77901732d7c15fde90;hp=06230c9c7f949bf83952a3697da60fbd654351a0;hpb=82abbc606cc5e3d9c26e2ab6d36e093ed86ae1bf;p=flatwaifu.git diff --git a/src/items.c b/src/items.c index 06230c9..126fd5c 100644 --- a/src/items.c +++ b/src/items.c @@ -120,6 +120,10 @@ int IT_load(FILE* h) { case MB_THING: for(i=0;blk.sz>0;++i,blk.sz-=8) { myfread(&t,1,sizeof(t),h); + t.x = short2host(t.x); + t.y = short2host(t.y); + t.t = short2host(t.t); + t.f = short2host(t.f); it[i].o.x=t.x;it[i].o.y=t.y; it[i].t=t.t;it[i].s=t.f; if(!it[i].t) break;