Skip to content

Commit

Permalink
this is the greatest moment
Browse files Browse the repository at this point in the history
  • Loading branch information
MF42-DZH committed Dec 4, 2020
1 parent bab70f6 commit 30bf095
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zeroxfc/nullpo/custom/modes/Deltatris.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public void playerInit( GameEngine engine, int playerID ) {
}

version = CURRENT_VERSION;
PLAYER_NAME = null;
} else {
loadSetting( owner.replayProp );
if ( ( version == 0 ) && ( owner.replayProp.getProperty( "deltatris.endless", false ) ) ) goaltype = 2;
Expand Down Expand Up @@ -520,7 +521,7 @@ public void renderLast( GameEngine engine, int playerID ) {

receiver.drawScoreFont( engine, playerID, 0, 17, "SPEED", EventReceiver.COLOR_RED );

if ( ( playerProperties != null && playerProperties.isLoggedIn() ) || PLAYER_NAME.length() > 0 ) {
if ( ( playerProperties != null && playerProperties.isLoggedIn() ) || ( PLAYER_NAME != null && PLAYER_NAME.length() > 0 ) ) {
receiver.drawScoreFont( engine, playerID, 8, 17, "PLAYER", EventReceiver.COLOR_BLUE );
receiver.drawScoreFont( engine, playerID, 8, 18, owner.replayMode ? PLAYER_NAME : playerProperties.getNameDisplay(), EventReceiver.COLOR_WHITE, 2f );
}
Expand Down

0 comments on commit 30bf095

Please sign in to comment.