diff --git a/main.cpp b/main.cpp index a0f041e..6ff1a61 100644 --- a/main.cpp +++ b/main.cpp @@ -41,7 +41,7 @@ std::vector sectors; int current_sector = 38; int current_sector2 = 38; -vec2 position = { 1056.0f, -3616.0f }; +vec2 position = { 1056.0f, 3616.0f }; //vec2 position = {975.0f, -3525.0f}; float orientation = 90.0f; //270.0f; //float orientation = 180.0f; @@ -219,7 +219,7 @@ void loadMap(const char* name) int16_t *vertices = (int16_t *)wad::load(name, "VERTEXES", &size); const int num_vertices = size/4; for (int i=0;ih; //64; const float sector_height = s.ceiling_height - s.floor_height; + if (sector_height == 0) return; const int width = w->surf ? w->surf->w : w->upper_surf ? w->upper_surf->w : w->lower_surf ? w->lower_surf->w : 64; draw::map::putp(result.x, result.y, 6); @@ -731,7 +732,7 @@ int main(int argc, char *argv[]) { //if (sec==current_sector2) for (auto &w : s.walls) { - if (dot(normal, w.normal) >= 0) continue; + //if (dot(normal, w.normal) >= 0) continue; draw::map::line(verts[w.v1].x, verts[w.v1].y, verts[w.v2].x, verts[w.v2].y, sec==current_sector?20:4, position.x, position.y); vec2 nx {(verts[w.v2].x+verts[w.v1].x)/2, (verts[w.v2].y+verts[w.v1].y)/2}; draw::map::line(nx.x, nx.y, nx.x+w.normal.x*20, nx.y+w.normal.y*20, sec==current_sector?22:3, position.x, position.y);