PDA

View Full Version : Same syntax, different semantic and result



qwerty
23rd September 2015, 20:49
Hey,

Can somebody tell me, why the first way is a working way, and the another is dead end? So it's working fine, after that the array looks good


maps = GetCvar("scr_nextmap_maps");
level.nextmap["maps"] = StrTok(maps, ",");


but in this case the array's size will be 0


level.nextmap["maps"] = StrTok(GetCvar("scr_nextmap_maps"), ",");


The question is why?

filthy_freak_
23rd September 2015, 22:28
http://killtube.org/showthread.php?1743-Problem-with-quot-if(getCvar-quot-function&p=8507&viewfull=1#post8507

IzNoGoD
23rd September 2015, 23:13
tl;dr: cod engine bug

qwerty
24th September 2015, 12:29
Allright, good to know, thanks!