MinoMino / minqlx

Extends Quake Live's dedicated server with extra functionality and scripting.
GNU General Public License v3.0
112 stars 42 forks source link

Update hooks.c #82

Closed mgaertne closed 5 years ago

mgaertne commented 5 years ago

using the server static svs rather than the level

em92 commented 5 years ago

Field in level_locals_t: https://github.com/MinoMino/minqlx/blob/54e9a1c311a9426e50b5b17dfd764fb72b861b2b/quake_common.h#L1406

Field in serverStatic_t: https://github.com/MinoMino/minqlx/blob/54e9a1c311a9426e50b5b17dfd764fb72b861b2b/quake_common.h#L1005

client var in My_ClientThink_real is type of https://github.com/MinoMino/minqlx/blob/a46d57267445eb03ee82aa447bc5919a73fbb01a/hooks.c#L236

So, that's the reason why we use level var here.