Changeset 43
 Timestamp:
 Dec 22, 2002, 11:36:42 PM (18 years ago)
 Location:
 libcaca/trunk/src
 Files:

 1 added
 3 edited
Legend:
 Unmodified
 Added
 Removed

libcaca/trunk/src/Makefile.am
r39 r43 25 25 explosions.c \ 26 26 main.c \ 27 math.c \ 27 28 starfield.c \ 28 29 weapons.c \ 
libcaca/trunk/src/common.h
r41 r43 4 4 * All Rights Reserved 5 5 * 6 * $Id: common.h,v 1. 8 2002/12/22 22:17:41sam Exp $6 * $Id: common.h,v 1.9 2002/12/22 22:36:42 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 186 186 void ceo_alert( void ); 187 187 188 int r00t( int a ); 189 
libcaca/trunk/src/weapons.c
r41 r43 4 4 * All Rights Reserved 5 5 * 6 * $Id: weapons.c,v 1. 8 2002/12/22 22:17:41sam Exp $6 * $Id: weapons.c,v 1.9 2002/12/22 22:36:42 sam Exp $ 7 7 * 8 8 * This program is free software; you can redistribute it and/or modify … … 22 22 23 23 #include <stdlib.h> 24 #include <math.h>25 24 26 25 #include "common.h" … … 173 172 /* Normalize and update speed */ 174 173 wp>vx[i] = (7 * wp>vx[i] 175 + (dx * 48) / sqrt(dx*dx+dy*dy) ) / 8;174 + (dx * 48) / r00t(dx*dx+dy*dy) ) / 8; 176 175 wp>vy[i] = (7 * wp>vy[i] 177 + (dy * 24) / sqrt(dx*dx+dy*dy) ) / 8;176 + (dy * 24) / r00t(dx*dx+dy*dy) ) / 8; 178 177 179 178 break;
Note: See TracChangeset
for help on using the changeset viewer.