diff options
author | Spp <none@none> | 2010-04-07 23:56:35 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 23:56:35 +0200 |
commit | 46f0674e237dd8fe97ba4f0769e18b4adfce841b (patch) | |
tree | 4556d27751077c2ed37a445493ed93a4d08e981b /src/game/Chat.cpp | |
parent | 2454c290b84e04bd0321ca94e0be8c8dc7eedbe8 (diff) |
Code Style (game + scripts only):
">=" --> " >= " (when needed)
" >=" --> " >="
">= " --> ">= "
"<=" --> " <= " (when needed)
" <=" --> " <="
"<= " --> "<= "
" ==" --> " =="
"== " --> "== "
--HG--
branch : trunk
Diffstat (limited to 'src/game/Chat.cpp')
-rw-r--r-- | src/game/Chat.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp index ea324f3d5eb..fc4539c7d72 100644 --- a/src/game/Chat.cpp +++ b/src/game/Chat.cpp @@ -1263,12 +1263,12 @@ valid examples: color <<= 4; // check for hex char - if (c >= '0' && c <='9') + if (c >= '0' && c <= '9') { color |= c-'0'; continue; } - if (c >= 'a' && c <='f') + if (c >= 'a' && c <= 'f') { color |= 10+c-'a'; continue; @@ -1320,7 +1320,7 @@ valid examples: negativeNumber = false; while ((c = reader.get())!=':') { - if (c >='0' && c<='9') + if (c >='0' && c <= '9') { propertyId*=10; propertyId += c-'0'; @@ -1347,7 +1347,7 @@ valid examples: } // ignore other integers - while ((c >='0' && c <='9') || c == ':') + while ((c >='0' && c <= '9') || c == ':') { reader.ignore(1); c = reader.peek(); @@ -1359,7 +1359,7 @@ valid examples: uint32 questid= 0; // read questid char c = reader.peek(); - while (c >='0' && c<='9') + while (c >='0' && c <= '9') { reader.ignore(1); questid *= 10; @@ -1435,7 +1435,7 @@ valid examples: uint32 spellid = 0; // read spell entry char c = reader.peek(); - while (c >='0' && c<='9') + while (c >='0' && c <= '9') { reader.ignore(1); spellid *= 10; @@ -1454,7 +1454,7 @@ valid examples: uint32 spellid = 0; // read spell entry char c = reader.peek(); - while (c >='0' && c<='9') + while (c >='0' && c <= '9') { reader.ignore(1); spellid *= 10; @@ -1493,7 +1493,7 @@ valid examples: reader.getline(buffer, 256, ':'); uint32 glyphId = 0; char c = reader.peek(); - while (c>='0' && c <='9') + while (c >= '0' && c <= '9') { glyphId *= 10; glyphId += c-'0'; |