Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

wip

  • Loading branch information...
commit 8c81204366fe22fb0f6905cdf05f48a34df54688 1 parent c4ed46c
Werner Almesberger authored February 26, 2012

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  patches/demo/wheel/wheel.fnp
12  patches/demo/wheel/wheel.fnp
@@ -93,16 +93,16 @@ per_frame:
93 93
 	image2_a = alpha2;
94 94
 
95 95
 	f1 = f1+(speed1-off1)*scale;
96  
-	f1 = f1 < 0 ? f1+24 : f1;
97  
-	f1 = f1 >= 24 ? f1-24 : f1;
  96
+	f1 = f1+24 if f1 < 0;
  97
+	f1 = f1-24 if f1 >= 24;
98 98
 	off1 = reset1 ? speed1 : start1 ? speed1-1/scale : off1;
99  
-	off1 = rev1 ? 2*speed1-off1 : off1;
  99
+	off1 = 2*speed1-off1 if rev1;
100 100
 
101 101
 	f2 = f2+(speed2-off2)*scale;
102  
-	f2 = f2 < 0 ? f2+24 : f2;
103  
-	f2 = f2 >= 24 ? f2-24 : f2;
  102
+	f2 = f2+24 if f2 < 0;
  103
+	f2 = f2-24 if f2 >= 24;
104 104
 	off2 = reset2 ? speed2 : start2 ? speed2-1/scale : off2;
105  
-	off2 = rev2 ? 2*speed2-off2 : off2;
  105
+	off2 = 2*speed2-off2 if rev2;
106 106
 
107 107
 	image1_index = f1;
108 108
 	image2_index = f2;

0 notes on commit 8c81204

Please sign in to comment.
Something went wrong with that request. Please try again.