]> git.localhorst.tv Git - space.git/blobdiff - src/world/Sector.cpp
controlled entity
[space.git] / src / world / Sector.cpp
index bbe0bf413aa6b154b74aa96b4b7d23b2243e3bf0..781f23d7af62589a002944042e4a12ae29197cb6 100644 (file)
@@ -5,11 +5,10 @@
 
 namespace space {
 
-Sector::Sector(int w, int h, int numres)
-: w(w)
-, h(h)
+Sector::Sector(Vector<int> 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));