From ca382a894af7d6a14ee917ffe38fddfd9c823631 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 7 Aug 2010 23:15:35 +0000 Subject: [PATCH] Remove detection of sprites outside of sectors at map load and fix green sprites in Mapster32 with Polymer git-svn-id: https://svn.eduke32.com/eduke32@1689 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 10 ++++++++-- polymer/eduke32/build/src/polymer.c | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index bbc956d18..9ca83e3cd 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -6656,12 +6656,15 @@ int32_t loadboard(char *filename, char fromwhere, int32_t *daposx, int32_t *dapo for (i=0; ipicnum; if (picanm[curpicnum]&192) curpicnum += animateoffs(curpicnum,tspr->owner+32768); - if (tspr->cstat & 48) + if (tspr->cstat & 48 && searchit != 2) { uint32_t crc = crc32once((uint8_t *)tspr, offsetof(spritetype, owner)); int32_t curpriority = 0; @@ -1144,6 +1144,7 @@ void polymer_updatesprite(int32_t snum) s->plane.material.diffusemodulation[1] = ((GLubyte *)(&tspr->owner))[0]; s->plane.material.diffusemodulation[2] = ((GLubyte *)(&tspr->owner))[1]; s->plane.material.diffusemodulation[3] = 0xFF; + s->crc = 0xdeadbeef; } curpicnum = tspr->picnum;