From 51d7ad7c3773b5162ac415510a795126c8e71fe6 Mon Sep 17 00:00:00 2001 From: driAn Date: Sat, 14 Jan 2006 17:13:04 +0000 Subject: [PATCH] vweps git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@135 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/world.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/src/world.cpp b/source/src/world.cpp index daaf2c92..4f8e7895 100644 --- a/source/src/world.cpp +++ b/source/src/world.cpp @@ -210,11 +210,13 @@ entity *newentity(int x, int y, int z, char *what, int v1, int v2, int v3, int v case MAPMODEL: e.attr4 = e.attr3; - e.attr3 = e.attr2; + e.attr3 = e.attr2; + e.attr2 = (uchar)e.attr1; case PLAYERSTART: e.attr1 = (int)player1->yaw; break; - }; + }; + printf("attrs: %i %i %i %i\n", e.attr1, e.attr2, e.attr3, e.attr4); addmsg(1, 10, SV_EDITENT, ents.length(), type, e.x, e.y, e.z, e.attr1, e.attr2, e.attr3, e.attr4); ents.add(*((entity *)&e)); // unsafe! if(type==LIGHT) calclight();