summaryrefslogtreecommitdiff
path: root/dteutils.cpp
diff options
context:
space:
mode:
authorPixel <Pixel>2002-05-27 20:05:33 +0000
committerPixel <Pixel>2002-05-27 20:05:33 +0000
commite2fa0166aa8cb791e2e7d8b47adb6e07cbfcc549 (patch)
tree56ae179b0cd9d9abe7be9018d186bd1250cd934f /dteutils.cpp
parentaaa76739c3d6dbeb33b1f1027ec93c260fe55b35 (diff)
Fixing LZSS name.
Diffstat (limited to 'dteutils.cpp')
-rw-r--r--dteutils.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/dteutils.cpp b/dteutils.cpp
index 2759dc5..e740abf 100644
--- a/dteutils.cpp
+++ b/dteutils.cpp
@@ -161,16 +161,17 @@ void dte_reset(void) {
void build_dte(void) {
int i;
unsigned short t, t2;
-// unsigned short p = 0;
+ unsigned short p = 0;
for (i = 0; i < dte_text_size; i++) {
t = *((unsigned short *) (dte_text + i));
t2 = *((unsigned short *) (dte_text + i + 1));
-/* if (t == p) {
+ if (t == p) {
p = 0;
continue;
}
- p = t; */
+ p = t;
+// if (!dte_flags[t]) {
if ((!dte_flags[t]) && (dte_flags[t2] != 3)) {
dte_counters[t]++;
if (dte_counters[t] > dte_counter) {