shithub: choc

Download patch

ref: 71ff9b537e2ed9a34a33a7797c8b55d5077ab279
parent: 7579f29afb9f48e01a7f21a0726b109f66b5f2b5
author: Simon Howard <fraggle@gmail.com>
date: Wed Jun 27 19:15:56 EDT 2007

Interpret skill level setting as a signed integer, to allow -skill 0.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 927

--- a/src/net_structrw.c
+++ b/src/net_structrw.c
@@ -53,7 +53,7 @@
         && NET_ReadInt8(packet, (unsigned int *) &settings->nomonsters)
         && NET_ReadInt8(packet, (unsigned int *) &settings->episode)
         && NET_ReadInt8(packet, (unsigned int *) &settings->map)
-        && NET_ReadInt8(packet, (unsigned int *) &settings->skill)
+        && NET_ReadSInt8(packet, &settings->skill)
         && NET_ReadInt8(packet, (unsigned int *) &settings->gameversion)
         && NET_ReadInt8(packet, (unsigned int *) &settings->lowres_turn)
         && NET_ReadInt8(packet, (unsigned int *) &settings->new_sync)