X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fworld%2FSector.cpp;fp=src%2Fworld%2FSector.cpp;h=781f23d7af62589a002944042e4a12ae29197cb6;hp=bbe0bf413aa6b154b74aa96b4b7d23b2243e3bf0;hb=3f4f8a92f64df08119a40da4d196b3e92ecdc637;hpb=96ab5904b059e00e78b26a6527790c8dc951e324 diff --git a/src/world/Sector.cpp b/src/world/Sector.cpp index bbe0bf4..781f23d 100644 --- a/src/world/Sector.cpp +++ b/src/world/Sector.cpp @@ -5,11 +5,10 @@ namespace space { -Sector::Sector(int w, int h, int numres) -: w(w) -, h(h) +Sector::Sector(Vector size, int numres) +: size(size) , numres(numres) -, total(w * h * numres) +, total(size.x * size.y * numres) , res_begin(new int[total]) , res_end(res_begin + total) { std::memset(res_begin, 0, total * sizeof(int));