lukemcredmond / violetland

Automatically exported from code.google.com/p/violetland
0 stars 0 forks source link

last loaded weapon inaccessible #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
line 1402 in program.cpp should read as follows
int weaponIndex = (rand() % weaponManager->Weapons.size());
it is currently
int weaponIndex = (rand() % (weaponManager->Weapons.size() - 1));

as is, it prevents the last loaded weapon from ever spawning

Original issue reported on code.google.com by billy65...@gmail.com on 2 Mar 2010 at 2:12

GoogleCodeExporter commented 9 years ago

Original comment by 5253...@gmail.com on 2 Mar 2010 at 6:28