shithub: qk1

Download patch

ref: f6275a20cf9dda098a6cfdcab986b6e7cb04fc03
parent: 0e037180474abd0d37e2d87a878378e83dd06895
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Oct 12 21:37:07 EDT 2023

sv: typoed "model" vs "modelindex"

--- a/sv_main.c
+++ b/sv_main.c
@@ -502,16 +502,16 @@
 			bits |= U_MODEL;
 		if (e >= 256)
 			bits |= U_LONGENTITY;
-		if((bits & U_FRAME) != 0){
+		if(bits & U_FRAME){
 			if(ent->v.frame >= sv.protocol->limit_frame)
 				bits ^= U_FRAME;
 			else if(ent->v.frame >= sv.protocol->large_frame)
 				bits |= sv.protocol->fl_large_frame;
 		}
-		if((bits & U_MODEL) != 0){
-			if(ent->v.model >= sv.protocol->limit_model)
+		if(bits & U_MODEL){
+			if(ent->v.modelindex >= sv.protocol->limit_model)
 				bits ^= U_MODEL;
-			else if(ent->v.model >= sv.protocol->large_model)
+			else if(ent->v.modelindex >= sv.protocol->large_model)
 				bits |= sv.protocol->fl_large_model;
 		}
 		if(bits >= (1<<8)){