ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/randlvl.C
(Generate patch)

Comparing libgender/randlvl.C (file contents):
Revision 1.2 by root, Mon Feb 7 07:37:00 2005 UTC vs.
Revision 1.3 by root, Mon Feb 7 08:16:31 2005 UTC

39 tri->set (t); 39 tri->set (t);
40 40
41 return tri; 41 return tri;
42} 42}
43 43
44int myrand (float max) { 44static float myrand (float max)
45{
45 return (max * rand () / RAND_MAX); 46 return max * (float)rand () / (float)RAND_MAX;
46} 47}
47 48
48entity *RandomBuilding::draw (int cnt, int max_room, int max_cubes) 49entity *RandomBuilding::draw (int cnt, int max_room, int max_cubes)
49{ 50{
50 geometry_container *objs = new geometry_container; 51 geometry_container *objs = new geometry_container;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines