Skip to content

Commit

Permalink
Merge pull request #81 from QSanguosha-Rara/dev
Browse files Browse the repository at this point in the history
0.7.2 merge
  • Loading branch information
YanGuam committed Jun 1, 2014
2 parents 44136ca + 3028fe4 commit 78d4c74
Show file tree
Hide file tree
Showing 10 changed files with 247 additions and 243 deletions.
470 changes: 236 additions & 234 deletions builds/vs2010/sanguosha.ts

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Change Log / Release Notes

0.7.2 beta
0.7.2 beta (June 2 2014)
-----------------------------
Bugs Fixed:
+天覆失效
Expand Down Expand Up @@ -50,7 +50,7 @@

+升级LUA为5.2.3,依然加入continue,但是删除了module

+升级Qt基础库至4.8.6
+升级Qt基础库至4.8.6(release)/5.3.0(develop)

+在AI延时为0时不显示觉醒动画

Expand Down Expand Up @@ -81,6 +81,8 @@
+新增可选规则:首亮奖励

+新增测试功能:检查更新

+根据最新规则,调整借刀杀人

0.7.1 alpha (April 10 2014)
-----------------------------
Expand Down
2 changes: 1 addition & 1 deletion developers/Yanguam.htm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>YanGuam</h1>
<br />
<br />
<br />
<img border="0" src="./image/system/developers/rara.jpg" alt="Yanguam Siliagim" title="Yanguam Siliagim" width=100><br />
<img border="0" src="./image/system/developers/rara.png" alt="Yanguam Siliagim" title="Yanguam Siliagim" width=100><br />
<br />
<br />
<br>简介</div>
Expand Down
Binary file removed image/system/developers/rara.jpg
Binary file not shown.
Binary file added image/system/developers/rara.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed image/system/simpleBg/dialog.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/core/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ SkillCard *Engine::cloneSkillCard(const QString &name) const{
}

QString Engine::getVersionNumber() const{
return "0.7.1.9";
return "0.7.2";
}

QString Engine::getVersion() const{
Expand Down
6 changes: 3 additions & 3 deletions src/dialog/UpdateChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void UpdateChecker::fill( UpdateInfoStruct info )
{
QString state;
bool lastest = false;
if (info.version_number > Sanguosha->getVersionNumber()) {
if (info.version_number.toInt() > Sanguosha->getVersionNumber().toInt()) {
QString postfix = " : " + info.version_number;
if (info.is_patch)
state = tr("New Patch Available") + postfix;
Expand All @@ -56,7 +56,7 @@ void UpdateChecker::fill( UpdateInfoStruct info )
state_label->setText(state);

if (lastest)
address_label->hide();
address_label->setText(tr("Lastest Version Already"));
else {
address_label->setOpenExternalLinks(true);
address_label->setText(QString("<a href='%1' style = \"color:#0072c1; \">%1</a> <br/>").arg(info.address));
Expand All @@ -69,7 +69,7 @@ void UpdateChecker::fill( UpdateInfoStruct info )
QString content = stream.readAll();
page->setHtml(content);
} else
page->hide();
page->setText(tr("Lastest Version Already"));
}

void UpdateChecker::clear()
Expand Down
2 changes: 1 addition & 1 deletion src/dialog/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ void MainWindow::storeKeyAndValue( const QString &key, const QString &value )
update_info.is_patch = false;

update_info.version_number = v;
if (Sanguosha->getVersionNumber() < value)
if (Sanguosha->getVersionNumber().toInt() < value.toInt())
setWindowTitle(tr("New Version Available") + " " + windowTitle());
} else if ("Address" == key)
update_info.address = value;
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static bool callback(const wchar_t *, const wchar_t *id,
if (succeeded && QFile::exists("QSanSMTPClient.exe")){
char *ID = new char[65535];
memset(ID, 0, sizeof(ID));
WideCharToMultiByte(CP_ACP, 0, id, -1, ID, 65535, NULL, FALSE);
wcstombs(ID, id, wcslen(id));
QProcess *process = new QProcess(qApp);
QStringList args;
args << QString(ID) + ".dmp";
Expand Down

0 comments on commit 78d4c74

Please sign in to comment.