Skip to content

Commit

Permalink
Merge pull request #515 from Aidoneus/master
Browse files Browse the repository at this point in the history
HD versions of loadscreens + HD backdrop selection fix for main menu + HD resources artist added to credits
  • Loading branch information
stalkerg authored Nov 21, 2021
2 parents 4d6eb2a + 5b9e875 commit 60b4dec
Show file tree
Hide file tree
Showing 19 changed files with 2,272 additions and 30 deletions.
2,254 changes: 2,254 additions & 0 deletions data/game.lst

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/resource/iscreen/text/eng/credits7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ updating of the game in Steam and GOG
Dmitry "AMDmi3" Marakasov, rework of the source code

Nikita "lpenguin" Prianichnikov, HD support
Egor V.D., artist for HD resources

Aigars "Zuzon" Zeiza, 60 FPS support

Expand Down
1 change: 1 addition & 0 deletions data/resource/iscreen/text/rus/credits7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
����਩ "AMDmi3" ��ࠪ�ᮢ, ���ࠡ�⪠ ��室���� ���� ����

����� "lpenguin" ��ﭨ筨���, �����প� HD � ���
���� �.�., �㤮���� ��䨪� ��� HD

Aigars "Zuzon" Zeiza, �����প� 60 FPS � ���

Expand Down
Binary file added data/resource/video/svs/20.svs
Binary file not shown.
Binary file added data/resource/video/svs/21.svs
Binary file not shown.
Binary file added data/resource/video/svs/22.svs
Binary file not shown.
Binary file added data/resource/video/svs/23.svs
Binary file not shown.
Binary file added data/resource/video/svs/24.svs
Binary file not shown.
Binary file added data/resource/video/svs/25.svs
Binary file not shown.
Binary file added data/resource/video/svs/26.svs
Binary file not shown.
Binary file added data/resource/video/svs/27.svs
Binary file not shown.
Binary file added data/resource/video/svs/28.svs
Binary file not shown.
Binary file added data/resource/video/svs/29.svs
Binary file not shown.
Binary file added data/resource/video/svs/291.svs
Binary file not shown.
Binary file added data/resource/video/svs/292.svs
Binary file not shown.
31 changes: 5 additions & 26 deletions lib/xgraph/xside.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
// Created by caiiiycuk on 25.06.2021.
//

#include <utility>
#include <functional>
#include "xbmp.h"
#include <functional>
#include <utility>

extern int xgrScreenSizeX;
extern int xgrScreenSizeY;

extern int getCurRtoId();
extern int getCurIScreenId();
extern int getCurIScreenX();
extern int CurrentWorld;

namespace {
Expand All @@ -23,6 +24,7 @@ int currentIScreenId = 0;
std::pair<const char *, const char *> getSideNames() {
int activeRtoId = getCurRtoId();
int activeIScreenId = getCurIScreenId();
int activeIScreenX = getCurIScreenX();

if (activeRtoId == 0) {
return activeSides;
Expand All @@ -37,30 +39,7 @@ std::pair<const char *, const char *> getSideNames() {
currentIScreenId = activeIScreenId;

if (currentRto == 5 /*RTO_MAIN_MENU_ID*/) {
if (activeIScreenId == 20 /* Genesis */ ||
activeIScreenId == 27 /* Main menu */ ||
activeIScreenId == 41 /* Graphics */ ||
activeIScreenId == 59 /* Sound */ ||
activeIScreenId == 123 /* Join */ ||
activeIScreenId == 128 /* Create Server */ ||
activeIScreenId == 358 /* Network Game Type */ ||
activeIScreenId == 467 /* Identification */ ||
activeIScreenId == 508 /* Chat */ ||
activeIScreenId == 528 /* Game Result */ ||
activeIScreenId == 654 /* Player Setup */ ||
activeIScreenId == 662 /* Controls */ ||
activeIScreenId == 678 /* Internet */ ||
activeIScreenId == 698 /* Hall of Fame */ ||
activeIScreenId == 770 /* Set Server Port */ ||
activeIScreenId == 788 /* Addons (Web Version) */ ||
activeIScreenId == 1126 /* Credits (2013+ Page 1) */ ||
activeIScreenId == 1134 /* Credits (2013+ Page 3) */ ||
activeIScreenId == 1139 /* Credits (2002 - 2013) */ ||
activeIScreenId == 1143 /* Credits (IM) */ ||
activeIScreenId == 1148 /* Credits (Buka) */ ||
activeIScreenId == 1153 /* Credits (KD-Lab Page 1) */ ||
activeIScreenId == 1161 /* Credits (KD-Lab Page 2) */ ||
activeIScreenId == 0) {
if (activeIScreenX == 0) {
return std::make_pair<>(
"resource/actint/hd/side/main_menu_left.bmp",
"resource/actint/hd/side/main_menu_right.bmp");
Expand Down
4 changes: 4 additions & 0 deletions src/iscreen/iscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ int getCurIScreenId() {
return iScrDisp == nullptr || iScrDisp->curScr == nullptr ? 0 : iScrDisp->curScr->ID;
}

int getCurIScreenX() {
return iScrDisp == nullptr || iScrDisp->curScr == nullptr ? 0 : iScrDisp->curScr->ScreenOffs;
}

iListElement::iListElement(void)
{
//ID_ptr = new char[256];
Expand Down
7 changes: 3 additions & 4 deletions src/units/hobj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2625,7 +2625,6 @@ extern int camera_Y_prev;

void ChangeWorld(int world,int flag)
{
const int passImageMinSize = 800;
int t,i;
if(CurrentWorld == WORLD_KHOX)
scale_general *= 2.;
Expand All @@ -2635,17 +2634,17 @@ void ChangeWorld(int world,int flag)

PassageBmpPrev = -1;
t = RND(PassageBmpNum);
if(PassageImageData[t].xSize < passImageMinSize || PassageImageData[t].xSize > XGR_MAXX){
if(PassageImageData[t].xSize != XGR_MAXX){
for(i = t;i < PassageBmpNum;i++){
if(PassageImageData[i].xSize >= passImageMinSize && PassageImageData[i].xSize <= XGR_MAXX) {
if(PassageImageData[i].xSize == XGR_MAXX){
PassageBmpPrev = i;
break;
};
};

if(PassageBmpPrev == -1){
for(i = 0;i < PassageBmpNum;i++){
if(PassageImageData[i].xSize >= passImageMinSize && PassageImageData[i].xSize <= XGR_MAXX){
if(PassageImageData[i].xSize == XGR_MAXX){
PassageBmpPrev = i;
break;
};
Expand Down
4 changes: 4 additions & 0 deletions surmap/missed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,7 @@ int CurrentWorld = -1;
int getCurIScreenId() {
return 0;
}

int getCurIScreenX() {
return 0;
}

0 comments on commit 60b4dec

Please sign in to comment.