Don't render logo on MafiaC

This commit is contained in:
Vortrex
2022-09-04 15:49:08 -05:00
parent 65bad453ea
commit c94a40c2b1

View File

@@ -23,6 +23,10 @@ function initLogoScript() {
// =========================================================================== // ===========================================================================
function loadLogoImage() { function loadLogoImage() {
if (getGame() == AGRP_GAME_MAFIA_ONE) {
return false;
}
let logoStream = openFile(mainLogoPath); let logoStream = openFile(mainLogoPath);
let tempLogoImage = null; let tempLogoImage = null;
if (logoStream != null) { if (logoStream != null) {
@@ -36,6 +40,10 @@ function loadLogoImage() {
// =========================================================================== // ===========================================================================
function processLogoRendering() { function processLogoRendering() {
if (getGame() == AGRP_GAME_MAFIA_ONE) {
return false;
}
if (renderLogo) { if (renderLogo) {
if (logoImage != null) { if (logoImage != null) {
graphics.drawRectangle(logoImage, logoPos, logoSize); graphics.drawRectangle(logoImage, logoPos, logoSize);