mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Short circuits are now functioning correctly, resolved #73
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
//something was odd, so I broke this down for testing
|
||||
import math;
|
||||
|
||||
fn shadowCastPoint(x: float, y: float, depth: int) {
|
||||
return sin(tan(x/y)) * depth;
|
||||
}
|
||||
|
||||
print shadowCastPoint(1, 1, 10);
|
||||
13
scripts/test.toy
Normal file
13
scripts/test.toy
Normal file
@@ -0,0 +1,13 @@
|
||||
fn doA() {
|
||||
print "doA()";
|
||||
return true;
|
||||
}
|
||||
|
||||
fn doB() {
|
||||
print "doB()";
|
||||
return true;
|
||||
}
|
||||
|
||||
if (doA() || doB()) {
|
||||
print "success";
|
||||
}
|
||||
Reference in New Issue
Block a user