[Scummvm-cvs-logs] CVS: web index.php,1.24,1.25
Eugene Sandulenko
sev at users.sourceforge.net
Mon Sep 5 01:59:28 CEST 2005
Update of /cvsroot/scummvm/web
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18797
Modified Files:
index.php
Log Message:
Made LEC shots appear in 60% of total shots instead of current 40%.
Index: index.php
===================================================================
RCS file: /cvsroot/scummvm/web/index.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- index.php 12 Aug 2005 00:31:49 -0000 1.24
+++ index.php 5 Sep 2005 08:58:32 -0000 1.25
@@ -26,7 +26,16 @@
// counter vars
srand((double) microtime() * 1000000);
-$randImg = rand(0, $screenshots_count - 1);
+
+// Make LEC games appear in 60% of total shots
+$lastLECshot = 55;
+$randPart = rand(0, 10);
+
+if ($randPart < 6) {
+ $randImg = rand(0, $lastLECshot - 1);
+} else {
+ $randImg = $lastLECshot + rand(0, $screenshots_count - $lastLECshot - 1);
+}
echo html_round_frame_start("About ScummVM","");
?>
More information about the Scummvm-git-logs
mailing list