Whoops forgot to replace some redundant code related to regex
This commit is contained in:
parent
6ef3f4126f
commit
122dc294c9
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
@ -581,9 +580,9 @@ bool GameController::MouseUp(int x, int y, unsigned button)
|
|||||||
int tempSaveID = format::StringToNumber<int>(std::string(buff));
|
int tempSaveID = format::StringToNumber<int>(std::string(buff));
|
||||||
if (tempSaveID)
|
if (tempSaveID)
|
||||||
{
|
{
|
||||||
if ((*iter).text.c_str()[1] == 'c')
|
if (str[1] == 'c')
|
||||||
OpenSavePreview(tempSaveID, 0, false);
|
OpenSavePreview(tempSaveID, 0, false);
|
||||||
else if ((*iter).text.c_str()[1] == 't')
|
else if (str[1] == 't')
|
||||||
{
|
{
|
||||||
char url[256];
|
char url[256];
|
||||||
sprintf(url, "http://powdertoy.co.uk/Discussions/Thread/View.html?Thread=%i", tempSaveID);
|
sprintf(url, "http://powdertoy.co.uk/Discussions/Thread/View.html?Thread=%i", tempSaveID);
|
||||||
|
Reference in New Issue
Block a user