aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/general.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/general.cpp')
-rw-r--r--engines/cge/general.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/cge/general.cpp b/engines/cge/general.cpp
index 30b5f3186b..8464d020e5 100644
--- a/engines/cge/general.cpp
+++ b/engines/cge/general.cpp
@@ -138,10 +138,10 @@ char *forceExt(char *buf, const char *nam, const char *ext) {
static unsigned Seed = 0xA5;
-unsigned FastRand(void) {
+unsigned fastRand() {
return Seed = 257 * Seed + 817;
}
-unsigned FastRand(unsigned s) {
+unsigned fastRand(unsigned s) {
return Seed = 257 * s + 817;
}
@@ -149,12 +149,12 @@ uint16 RCrypt(void *buf, uint16 siz, uint16 seed) {
if (buf && siz) {
byte *b = static_cast<byte *>(buf);
byte *q = b + (siz - 1);
- seed = FastRand(seed);
+ seed = fastRand(seed);
*b++ ^= seed;
while (buf < q)
- *b++ ^= FastRand();
+ *b++ ^= fastRand();
if (buf == q)
- *b ^= (seed = FastRand());
+ *b ^= (seed = fastRand());
}
return seed;
}
@@ -225,7 +225,7 @@ IoHand::IoHand(const char *name, IOMODE mode, CRYPT *crpt)
_file->open(name);
}
-IoHand::~IoHand(void) {
+IoHand::~IoHand() {
_file->close();
delete _file;
}
@@ -258,7 +258,7 @@ uint16 IoHand::write(void *buf, uint16 len) {
*/
}
-long IoHand::mark(void) {
+long IoHand::mark() {
return _file->pos();
}
@@ -267,7 +267,7 @@ long IoHand::seek(long pos) {
return _file->pos();
}
-long IoHand::size(void) {
+long IoHand::size() {
return _file->size();
}
@@ -344,7 +344,7 @@ int takeEnum(const char **tab, const char *txt) {
return -1;
}
-long timer(void) {
+long timer() {
/*
asm mov ax,0x40
asm mov es,ax