--- deliantra/Deliantra-Client/Client.xs 2008/12/04 23:58:20 1.281 +++ deliantra/Deliantra-Client/Client.xs 2008/12/11 00:17:47 1.284 @@ -1782,7 +1782,7 @@ if (tex->unused) { tex->name = 0; - tex->unused = 0, + tex->unused = 0; XPUSHs (sv_2mortal (newSViv (texid))); } else @@ -2027,7 +2027,6 @@ key.a = 255; key.mode = GL_QUADS; key.format = GL_T2F_V3F; - key.texname = -1; mx += self->x; my += self->y; @@ -2061,6 +2060,7 @@ for (z = 0; z <= 2; z++) { memset (smooth_level, 0, sizeof (smooth_level)); + key.texname = -1; for (y = 0; y < sh; y++) if (0 <= y + my && y + my < self->rows) @@ -2105,6 +2105,12 @@ if (expect_false (cell->flags) && expect_false (z == 2)) { + /* this is a workaround to make speech bubbles drawn + * for example above walls, work. */ + rc_draw (rc); + rc_clear (rc); + key.texname = -1; + // overlays such as the speech bubble, probably more to come if (cell->flags & 1) {