aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/vmenu.cpp
diff options
context:
space:
mode:
authorStrangerke2011-06-26 12:07:42 +0200
committerStrangerke2011-06-26 12:07:42 +0200
commita06a75b9a41fb3ef9da2c7420ee9dee257c89cca (patch)
tree94366e3dcc6063c28e045e59293af11024689637 /engines/cge/vmenu.cpp
parentd5fdd094294becb49ef2adf0af00c4814c6efefe (diff)
downloadscummvm-rg350-a06a75b9a41fb3ef9da2c7420ee9dee257c89cca.tar.gz
scummvm-rg350-a06a75b9a41fb3ef9da2c7420ee9dee257c89cca.tar.bz2
scummvm-rg350-a06a75b9a41fb3ef9da2c7420ee9dee257c89cca.zip
CGE: Implement ForceExt and RCrypt. Little style cleanup.
Diffstat (limited to 'engines/cge/vmenu.cpp')
-rw-r--r--engines/cge/vmenu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cge/vmenu.cpp b/engines/cge/vmenu.cpp
index cb2c2013f4..e2b2a29515 100644
--- a/engines/cge/vmenu.cpp
+++ b/engines/cge/vmenu.cpp
@@ -54,7 +54,7 @@ MENU_BAR::MENU_BAR(uint16 w) {
memset(p + i - w, MB_RB, w);
p1 = p;
p2 = p + i - 1;
- for (i = 0; i < h; i ++) {
+ for (i = 0; i < h; i++) {
*p1 = MB_LT;
*p2 = MB_RB;
p1 += w;
@@ -76,14 +76,14 @@ char *VMGather(CHOICE *list) {
CHOICE *cp;
int len = 0, h = 0;
- for (cp = list; cp->Text; cp ++) {
+ for (cp = list; cp->Text; cp++) {
len += strlen(cp->Text);
++h;
}
vmgt = new char[len + h];
if (vmgt) {
*vmgt = '\0';
- for (cp = list; cp->Text; cp ++) {
+ for (cp = list; cp->Text; cp++) {
if (*vmgt)
strcat(vmgt, "|");
strcat(vmgt, cp->Text);
@@ -105,7 +105,7 @@ VMENU::VMENU(CHOICE *list, int x, int y)
Addr = this;
delete[] vmgt;
Items = 0;
- for (cp = list; cp->Text; cp ++)
+ for (cp = list; cp->Text; cp++)
++Items;
Flags.BDel = true;
Flags.Kill = true;