X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fitems.c;h=126fd5ce4e24e5f80fbc1e39895917cb3dc8fb75;hp=06230c9c7f949bf83952a3697da60fbd654351a0;hb=e5c2eddc151a59db4e611a77901732d7c15fde90;hpb=8fb3d3f767b8e5d094e8bcbee350f4d16ab17c5a 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;