aboutsummaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-12-15 10:02:08 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-12-15 10:02:08 +0000
commit109b822338fde86e41dc8309f5ed4067933e3cee (patch)
tree9d47eca051c62a97ce6048fb64d19e6e871a3709 /src/base
parent84ba643aebf1c3f60797d0ef6e9b64936d4e4ddf (diff)
downloadusdx-109b822338fde86e41dc8309f5ed4067933e3cee.tar.gz
usdx-109b822338fde86e41dc8309f5ed4067933e3cee.tar.xz
usdx-109b822338fde86e41dc8309f5ed4067933e3cee.zip
spawn perfect line twinkle for player 1 to 3 on second screen, if the amount of players is less then 4 and screens=2
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2760 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/base')
-rw-r--r--src/base/UGraphicClasses.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/UGraphicClasses.pas b/src/base/UGraphicClasses.pas
index 55d91e39..3e2ed642 100644
--- a/src/base/UGraphicClasses.pas
+++ b/src/base/UGraphicClasses.pas
@@ -718,6 +718,10 @@ begin
begin
Life := RandomRange(8,16);
Spawn(RandomRange(Left,Right), RandomRange(Top,Bottom), cScreen, Life, 16-Life, -1, PerfectLineTwinkle, P);
+
+ //spawn also on second screen if the amount of players is <=3
+ if (Screens = 2) and (PlayersPlay <= 3) then
+ Spawn(RandomRange(Left,Right), RandomRange(Top,Bottom), 2, Life, 16-Life, -1, PerfectLineTwinkle, P);
end;
end;
end;