diff final_isi/3d.c @ 75:e76a4e19363d

Various cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 14 Aug 2012 05:27:32 +0300
parents c13a2f8c5b10
children
line wrap: on
line diff
--- a/final_isi/3d.c	Tue Aug 14 05:25:51 2012 +0300
+++ b/final_isi/3d.c	Tue Aug 14 05:27:32 2012 +0300
@@ -293,18 +293,14 @@
 
 /*******************************/
 
-extern signed int mul32(signed int a,signed int b);
-
-#define jmul32(a,b) (((long)(a)*(long)(b))>>16)
-
 eggine_do(char*b,sint rot,int zoom,int basex,int basey) {
 	register sint i; sint j; sint fzed[20],fcez[20];
 
 	if(obu.faces==bugi_faces){
 		bugi_vxes[5].y=bugi_vxes[6].y=
-			1000+mul32(700,sini16[(taimeri*13)&255]);
+			1000+mul32(700,sini16[(pwplib_timer()*13)&255]);
 		bugi_vxes[7].y=bugi_vxes[8].y=
-			1000+mul32(700,sini16[(taimeri*7)&255]);
+			1000+mul32(700,sini16[(pwplib_timer()*7)&255]);
 	}
 
 	/***** rotate vertices *****/