git repos / blockattack-game

commit 88f0d0ab

sago007 · 2017-03-02 19:05
88f0d0ab77c73a0a8ef15229d19fe808e28ea103 patch · browse files
parent 71ea5b7f022c372eacb1c8097c9cdf9e674782ca

Automatically place the game centered vertically.

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index 5f7d60e..d6e4a2e 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -1000,8 +1000,8 @@ static void StartTwoPlayerVs() {
}
static void MoveBlockGameSdls( BlockGameSdl& game1, BlockGameSdl& game2 ) {
- game1.SetTopXY(50, 100);
- game2.SetTopXY(globalData.xsize-500, 100);
+ game1.SetTopXY(50, globalData.ysize/2-284);
+ game2.SetTopXY(globalData.xsize-500, globalData.ysize/2-284);
}
struct globalConfig {