css support

This commit is contained in:
hermansimensen 2020-10-06 18:44:57 +02:00
parent 153e7b10ce
commit 54f3d26fd2
2 changed files with 9 additions and 2 deletions

View File

@ -45,7 +45,14 @@ enum struct Output
{
// Break it up into more managable parts
char entity[OUTPUTSIZE][MEMBER_SIZE];
ExplodeString(buffer, "\e", entity, OUTPUTSIZE, MEMBER_SIZE);
if(GetEngineVersion() == Engine_CSS)
{
ExplodeString(buffer, ",", entity, OUTPUTSIZE, MEMBER_SIZE);
} else
{
ExplodeString(buffer, "\e", entity, OUTPUTSIZE, MEMBER_SIZE);
}
this.Target = entity[TARGETENTITY];
this.Input = entity[OUTPUTNAME];

View File

@ -92,7 +92,7 @@ public Action OnLevelInit(const char[] mapName, char mapEntities[2097152])
{
char[] entity = new char[next+1];
strcopy(entity, next, mapEntities[current]);
Entity ent;
ent.Parse(entity);