Skip to content

Commit

Permalink
Version 92.0
Browse files Browse the repository at this point in the history
also update README, and make ctrl+a moderator only shortcut
  • Loading branch information
jacob1 committed Jul 23, 2017
1 parent ddce20d commit aad8eba
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion README.md
@@ -1,4 +1,4 @@
The Powder Toy - July 2016
The Powder Toy - July 2017
==========================

Get the latest version here: http://powdertoy.co.uk/Download.html
Expand Down Expand Up @@ -85,6 +85,7 @@ Controls
| Alt + ] | Increase brush size by 1 |
| Ctrl + C/V/X | Copy/Paste/Cut |
| Ctrl + Z | Undo |
| Ctrl + Y | Redo |
| Ctrl + Cursor drag | Rectangle |
| Shift + Cursor drag | Line |
| Middle click | Sample element |
Expand Down
6 changes: 3 additions & 3 deletions src/Config.h
Expand Up @@ -12,15 +12,15 @@

//VersionInfoStart
#ifndef SAVE_VERSION
#define SAVE_VERSION 91
#define SAVE_VERSION 92
#endif

#ifndef MINOR_VERSION
#define MINOR_VERSION 5
#define MINOR_VERSION 0
#endif

#ifndef BUILD_NUM
#define BUILD_NUM 330
#define BUILD_NUM 331
#endif

#ifndef SNAPSHOT_ID
Expand Down
2 changes: 0 additions & 2 deletions src/client/GameSave.cpp
Expand Up @@ -2138,7 +2138,6 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
{
RESTRICTVERSION(91, 5);
}
#ifdef SNAPSHOT
if (particles[i].type == PT_HEAC || particles[i].type == PT_SAWD || particles[i].type == PT_POLO
|| particles[i].type == PT_RFRG || particles[i].type == PT_RFGL || particles[i].type == PT_LSNS)
{
Expand All @@ -2150,7 +2149,6 @@ char * GameSave::serialiseOPS(unsigned int & dataLength)
RESTRICTVERSION(92, 0);
fromNewerVersion = true;
}
#endif

//Get the pmap entry for the next particle in the same position
i = partsPosLink[i];
Expand Down
6 changes: 3 additions & 3 deletions src/gui/game/GameView.cpp
Expand Up @@ -1488,15 +1488,15 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
case SDLK_F5:
c->ReloadSim();
break;
#if defined(DEBUG) || defined(SNAPSHOT)
case 'a':
if (ctrl)
if ((Client::Ref().GetAuthUser().UserElevation == User::ElevationModerator
|| Client::Ref().GetAuthUser().UserElevation == User::ElevationAdmin
|| Client::Ref().GetAuthUser().Username == "Mrprocom") && ctrl)
{
std::string authorString = Client::Ref().GetAuthorInfo().toStyledString();
new InformationMessage("Save authorship info", authorString, true);
}
break;
#endif
case 'r':
if (ctrl)
c->ReloadSim();
Expand Down

0 comments on commit aad8eba

Please sign in to comment.