Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjoffe committed Jul 30, 2020
1 parent 22631fd commit 2d1541e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/djimage.cpp
@@ -1,7 +1,7 @@
/*
djimage.cpp
Copyright (C) 1998-2018 David Joffe
Copyright (C) 1998-2020 David Joffe
*/

#include "djimage.h"
Expand Down Expand Up @@ -90,8 +90,6 @@ djImage::djImage( int iWidth, int iHeight, int ibpp )
m_ipixwidth = CalculatePixelWidth( ibpp );
m_ipitch = m_ipixwidth * iWidth;

//fixmemediumorfuture 2018 something might be wrong with this constructor??????? see attempts to use 12/13 jan 2018 for sprite drop shadow stuff

m_pData = new unsigned char[iWidth*iHeight*m_ipixwidth];

if (m_pData != NULL)
Expand Down
17 changes: 10 additions & 7 deletions src/hiscores.cpp
@@ -1,7 +1,7 @@
/*
hiscores.cpp
Copyright (C) 2001-2018 David Joffe
Copyright (C) 2001-2020 David Joffe
*/

#include <stdio.h>
Expand Down Expand Up @@ -97,15 +97,18 @@ bool LoadHighScores(const char *szFilename)
if (pIn==NULL)
{
djMSG("LoadHighScores: Failed to open file (%s): Creating default list\n", szFilename);
AddHighScore("Todd", 40000);
AddHighScore("Scott", 30000);
AddHighScore("George", 20000);
AddHighScore("Al", 10000);
AddHighScore("David", 5000);
// The default high scores in DN1 had firstnames of the DN1 developers, so we add that exactly the same here as a sort of 'hat tip' to them (with the same original default scores). And add myself. [dj2020-07]
// If we turn this into a generic little game engine this part should not be directly in the core but separated as Gnukem-specific stuff (maybe via derived class or lambda or something)
AddHighScore("Todd", 40000);//Todd Replogle
AddHighScore("Scott", 30000);//Scott Miller
AddHighScore("George", 20000);//George Broussard
AddHighScore("Al", 10000);//Allen H. Blum III
AddHighScore("David", 5000);//Me [dj2020-07]
AddHighScore("John", 500);// Is "John"==Jim Norwood? Not sure. The original DN1 highscores say "John" here but credits say "Jim Norwood" and no John is listed in credits. [dj2020-07]
return false;
}

char buf[512]={0};
char buf[1024]={0};

fgets(buf, sizeof(buf), pIn);
djStripCRLF(buf); // strip CR/LF characters
Expand Down

0 comments on commit 2d1541e

Please sign in to comment.