Skip to content

Commit

Permalink
game: cleanup fields
Browse files Browse the repository at this point in the history
  • Loading branch information
0lvin committed Nov 23, 2024
1 parent 10866e7 commit a3aaa30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/game/g_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ StaticSpawnSearch(const char *classname)
return NULL;
}


/*
* Finds the spawn function for
* the entity and calls it
Expand Down Expand Up @@ -498,7 +499,6 @@ ED_ParseField(const char *key, const char *value, edict_t *ent)
byte *b;
float v;
vec3_t vec;
int color[4];

if (!ent || !value || !key)
{
Expand Down
5 changes: 2 additions & 3 deletions src/game/savegame/tables/fields.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,14 @@
{"maxyaw", STOFS(maxyaw), F_FLOAT, FFL_SPAWNTEMP},
{"minpitch", STOFS(minpitch), F_FLOAT, FFL_SPAWNTEMP},
{"maxpitch", STOFS(maxpitch), F_FLOAT, FFL_SPAWNTEMP},
{"music", STOFS(music), F_LSTRING, FFL_SPAWNTEMP},
{"nextmap", STOFS(nextmap), F_LSTRING, FFL_SPAWNTEMP},
{"music", STOFS(music), F_LRAWSTRING, FFL_SPAWNTEMP},
{"nextmap", STOFS(nextmap), F_LRAWSTRING, FFL_SPAWNTEMP},
{"skinnum", FOFS(s.skinnum), F_INT},
{"time", FOFS(time), F_FLOAT},
{"text_msg", FOFS(text_msg), F_LSTRING},
{"jumptarget", FOFS(jumptarget), F_LSTRING},
{"scripttarget", FOFS(scripttarget), F_LSTRING},
{"materialtype", FOFS(materialtype), F_INT},
{"scale", FOFS(s.scale), F_FLOAT},
{"color", FOFS(s.color), F_RGBA},
{"frame", FOFS(s.frame), F_INT},
{"mintel", FOFS(mintel), F_INT},
Expand Down

0 comments on commit a3aaa30

Please sign in to comment.