Commit 0e47f4ab authored by DailyShana's avatar DailyShana

update for scale zero

parent 2be3deae
...@@ -155,19 +155,13 @@ void ClientCard::UpdateInfo(char* buf) { ...@@ -155,19 +155,13 @@ void ClientCard::UpdateInfo(char* buf) {
if(flag & QUERY_IS_PUBLIC) if(flag & QUERY_IS_PUBLIC)
is_public = BufferIO::ReadInt32(buf); is_public = BufferIO::ReadInt32(buf);
if(flag & QUERY_LSCALE) { if(flag & QUERY_LSCALE) {
pdata = BufferIO::ReadInt32(buf); lscale = BufferIO::ReadInt32(buf);
if(pdata && lscale != (unsigned int)pdata) {
lscale = pdata;
myswprintf(lscstring, L"%d", lscale); myswprintf(lscstring, L"%d", lscale);
} }
}
if(flag & QUERY_RSCALE) { if(flag & QUERY_RSCALE) {
pdata = BufferIO::ReadInt32(buf); rscale = BufferIO::ReadInt32(buf);
if(pdata && rscale != (unsigned int)pdata) {
rscale = pdata;
myswprintf(rscstring, L"%d", rscale); myswprintf(rscstring, L"%d", rscale);
} }
}
} }
void ClientCard::ClearTarget() { void ClientCard::ClearTarget() {
for(auto cit = cardTarget.begin(); cit != cardTarget.end(); ++cit) { for(auto cit = cardTarget.begin(); cit != cardTarget.end(); ++cit) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment