mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-11 19:54:07 +00:00
fixed a compilation error
This commit is contained in:
parent
3e71546e03
commit
b53f13bec9
@ -2023,7 +2023,7 @@ EX bool same_point_may_warn(hyperpoint a, hyperpoint b) {
|
|||||||
/** compute the area of a shape -- v.back() must equal v[0] */
|
/** compute the area of a shape -- v.back() must equal v[0] */
|
||||||
EX ld compute_area(const vector<hyperpoint>& v) {
|
EX ld compute_area(const vector<hyperpoint>& v) {
|
||||||
ld area = 0;
|
ld area = 0;
|
||||||
for(int i=0; i<v.size()-1; i++) {
|
for(int i=0; i<isize(v)-1; i++) {
|
||||||
hyperpoint h1 = v[i];
|
hyperpoint h1 = v[i];
|
||||||
hyperpoint h2 = v[i+1];
|
hyperpoint h2 = v[i+1];
|
||||||
if(euclid)
|
if(euclid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user