Add stonesense as a submodule, fix MSVC build of vdig module

develop
Petr Mrázek 2011-08-28 22:28:23 +02:00
parent e5f0c7637e
commit d451c6910b
3 changed files with 5 additions and 1 deletions

3
.gitmodules vendored

@ -0,0 +1,3 @@
[submodule "plugins/stonesense"]
path = plugins/stonesense
url = git://github.com/peterix/stonesense.git

@ -0,0 +1 @@
Subproject commit 7d41a1d6f1e770012bfb412aed3ef9b06fd04723

@ -293,7 +293,7 @@ DFhackCExport command_result digcircle (Core * c, vector <string> & parameters)
int top = cy - ((iter + 1) / 2) + adjust; int top = cy - ((iter + 1) / 2) + adjust;
int bottom = cy + ((iter + 1) / 2); int bottom = cy + ((iter + 1) / 2);
// see where the current 'line' intersects the circle // see where the current 'line' intersects the circle
double val = std::sqrt(diameter*diameter - iter*iter); double val = std::sqrt(double(diameter*diameter - iter*iter));
// adjust for circles with odd diameter // adjust for circles with odd diameter
if(!adjust) if(!adjust)
val -= 1; val -= 1;