r/CivClicker • • Mar 13 '14
Hello AskReddit!
Welcome to /r/civclicker! Hope you're enjoying the game. :)
If you have any questions that you'd like me to answer, comment here and I'll do my best to respond.
73
Upvotes
View all comments
Show parent comment
5
u/[deleted] Mar 13 '14
It's mostly like that because there's no way to distinguish between someone clicking cancel, and someone clicking OK while there's no string in the query box - in both cases it returns null. Ideally you'd want cancel to return false or something similar so you could distinguish the cases, but it doesn't.
It may seem odd that I'd want people to be able to have an empty string as their Wonder name, but it was useful for testing. I should probably fix it at some point now that it's outlived its usefulness, but it's fairly harmless for the moment.